X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=trunk%2Fsystem%2Fgeneral%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Fsystem%2Fcore%2FScope.java;h=ea814da377ee14938b7a0d0c02a77f5409a06459;hb=255b647035bf913c6051bea2c1010f6ce4705879;hp=829435f620abe022f1d75c033ab07685994cdbf7;hpb=74604f12a2839c3e4f13d26a9b2ffe743771aa97;p=utils diff --git a/trunk/system/general/src/main/java/org/wamblee/system/core/Scope.java b/trunk/system/general/src/main/java/org/wamblee/system/core/Scope.java index 829435f6..ea814da3 100644 --- a/trunk/system/general/src/main/java/org/wamblee/system/core/Scope.java +++ b/trunk/system/general/src/main/java/org/wamblee/system/core/Scope.java @@ -66,12 +66,20 @@ public interface Scope { * @param aType Type of implementation that is expected. * @return Retrieved interface. */ - T retrieveInterfaceImplementation(ProvidedInterface aProvided, Class aType ); + T getInterfaceImplementation(ProvidedInterface aProvided, Class 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); }