Title: [waffle-scm] [791] trunk/waffle-ruby/src/main/ruby/org/codehaus/waffle/waffle.rb: updated waffle.rb to work with latest pico API
Revision
791
Author
mward
Date
2008-08-27 23:53:53 -0500 (Wed, 27 Aug 2008)

Log Message

updated waffle.rb to work with latest pico API

Modified Paths


Diff

Modified: trunk/waffle-ruby/src/main/ruby/org/codehaus/waffle/waffle.rb (790 => 791)

--- trunk/waffle-ruby/src/main/ruby/org/codehaus/waffle/waffle.rb	2008-08-28 04:41:41 UTC (rev 790)
+++ trunk/waffle-ruby/src/main/ruby/org/codehaus/waffle/waffle.rb	2008-08-28 04:53:53 UTC (rev 791)
@@ -123,16 +123,16 @@
     end
 
     def locate(type)
-      return @__pico_container.getComponentInstanceOfType(type.java_class) if type.is_a? Module
+      return @__pico_container.getComponent(type.java_class) if type.is_a? Module
 
-      return @__pico_container.getComponentInstance(type)
+      return @__pico_container.getComponent(type)
     end
 
     def method_missing(symbol, *args)
       if symbol.to_s =~ /^locate_/
         key = symbol.to_s
         key = key[7..key.length]
-        component = @__pico_container.getComponentInstance(key)
+        component = @__pico_container.getComponent(key)
 
         return component unless component.nil?
       else


To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email

Reply via email to