|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IIoCRegistry
Defines the expected behavior for the IoC services and contributions registry. All accesses to the registry will be made through this interface. Accessing the registry through this interface reduces the impact of changing the used IoC framework and user defined implementations.
Method Summary | ||
---|---|---|
|
getImplementation(Class<T> serviceInterface)
Returns the implementation of a given interface. |
|
|
getImplementation(Class<T> serviceInterface,
String id)
Returns the implementation of a given interface with a given identification. |
|
|
getImplementations(Class<T> serviceInterface)
Returns the list of implementations for the given interface. |
|
|
getImplementationsMap(Class<T> serviceInterface)
Returns the list of implementations for the interface with the given ID. |
|
void |
injectDependencies(Object obj)
Injects dependencies into an object. |
Method Detail |
---|
<T> T getImplementation(Class<T> serviceInterface)
T
- the service's classserviceInterface
- the service's interface type
<T> T getImplementation(Class<T> serviceInterface, String id)
T
- the service's classserviceInterface
- the service's interface typeid
- the implementation's id
<T> Map<String,T> getImplementationsMap(Class<T> serviceInterface)
T
- the service's classserviceInterface
- the service's interface type
<T> List<T> getImplementations(Class<T> serviceInterface)
T
- the service's classserviceInterface
- the service's interface type
void injectDependencies(Object obj)
obj
- the object to inject dependencies intoInject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |