public interface ComponentAdapter<T> extends ComponentAdapter<T>
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.| Modifier and Type | Method and Description |
|---|---|
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
|
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()
Copyright © 2021 eXo Platform SAS. All Rights Reserved.