ComponentManager implementation that can wrap around a
ServiceManager object effectively adapting a ServiceManager
interface to a ComponentManager interface.
| Modifier and Type | Field and Description |
|---|---|
| private final ServiceManager | m_manager
The service manager we are adapting. |
| Access | Constructor and Description |
|---|---|
| public | WrapperComponentManager(final ServiceManager
the service manager backing the wrapper. manager)Creation of a new wrapper component manger using a supplied service manager as a source backing the wrapped. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: True if the component exists, False if it does not.a string identifying the key to check. key)Implements org. Component exists for a key.
|
| public Component | Returns: the componentthe key key)Implements org. |
| public void | release(final Component
The Component we are releasing. component)Implements org. Component when you are finished with it.
|
| m_manager | back to summary |
|---|---|
| private final ServiceManager m_manager The service manager we are adapting. | |
| WrapperComponentManager | back to summary |
|---|---|
| public WrapperComponentManager(final ServiceManager manager) Creation of a new wrapper component manger using a supplied service manager as a source backing the wrapped. This implementation redirects lookup requests to the supplied service manager provided under this constructor. No attempt is made to proxy object supplied by the primary manager as Component instances - as such, it is the responsibility of the application establishing the wrapper to ensure that objects accessed via the primary manager implement the Component interface.
| |
| hasComponent | back to summary |
|---|---|
| public boolean hasComponent(final String key) Implements org. Check to see if a
| |
| lookup | back to summary |
|---|---|
| public Component lookup(final String key) throws ComponentException Implements org. Retrieve a component via a key.
| |
| release | back to summary |
|---|---|
| public void release(final Component component) Implements org. Return the
| |