|
eXo Kernel :: Container 2.5.0-GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ComponentAdapter<T>
A component adapter is responsible for providing a specific component instance. An instance of an implementation of
this interface is used inside a Container for every registered component or instance. Each
ComponentAdapter instance has to have a key which is unique within that container. The key itself is
either a class type (normally an interface) or an identifier.
| Method Summary | |
|---|---|
Class<? extends T> |
getComponentImplementation()
Retrieve the class of the component. |
T |
getComponentInstance()
Retrieve the component instance. |
Object |
getComponentKey()
Retrieve the key associated with the component. |
boolean |
isSingleton()
Indicates whether or not this adapter is a singleton |
| Method Detail |
|---|
Object getComponentKey()
getComponentKey in interface ComponentAdapter<T>Class<? extends T> getComponentImplementation()
getComponentImplementation in interface ComponentAdapter<T>
T getComponentInstance()
throws ContainerException
ContainerException - if the component could not be instantiated. Or if the component has dependencies which could not be resolved, or
instantiation of the component lead to an ambiguous situation within the container.boolean isSingleton()
|
eXo Kernel :: Container 2.5.0-GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||