added default container to support classes directly.
[utils] / trunk / system / general / src / main / java / org / wamblee / system / core / Scope.java
index 829435f620abe022f1d75c033ab07685994cdbf7..ea814da377ee14938b7a0d0c02a77f5409a06459 100644 (file)
@@ -66,12 +66,20 @@ public interface Scope {
         * @param aType Type of implementation that is expected.
         * @return Retrieved interface.
         */
-       <T> T retrieveInterfaceImplementation(ProvidedInterface aProvided, Class<T> aType );
+       <T> T getInterfaceImplementation(ProvidedInterface aProvided, Class<T> aType );
 
        /**
         * Gets the runtime for a component.  
         * @param aComponent Component for which we want to get the runtime.  
         * @return Runtime.  
         */
-       Object getRuntime(Component aComponent); 
+       Object getRuntime(Component aComponent);
+       
+       /**
+        * Gets the runtime for a component based on the name of the component
+        * (excluding its context). 
+        * @param aName Component name. 
+        * @return Component name. 
+        */
+       Object getRuntime(String aName);
 }