ServiceManager implementation that can wrap around a legacy
ComponentManager object effectively adapting a ComponentManager
interface to a ServiceManager interface.
| Modifier and Type | Field and Description |
|---|---|
| private final ComponentManager | m_componentManager
The component manager thaty this class wraps. |
| Access | Constructor and Description |
|---|---|
| public | WrapperServiceManager(final ComponentManager
the ComponentManager instance that is being wrapped componentManager)This constructor is a constructor for a WrapperServiceManager. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the component is available in ServiceManagerthe lookup key)Implements org. |
| public Object | Returns: the matching servicethe key to use to lookup component key)Implements org. |
| public void | release(final Object
the service service)Implements org. |
| m_componentManager | back to summary |
|---|---|
| private final ComponentManager m_componentManager The component manager thaty this class wraps. | |
| WrapperServiceManager | back to summary |
|---|---|
| public WrapperServiceManager(final ComponentManager componentManager) This constructor is a constructor for a WrapperServiceManager.
| |
| hasService | back to summary |
|---|---|
| public boolean hasService(final String key) Implements org. Return true if the component is available in ServiceManager.
| |
| lookup | back to summary |
|---|---|
| public Object lookup(final String key) throws ServiceException Implements org. Retrieve a service using specified key.
| |
| release | back to summary |
|---|---|
| public void release(final Object service) Implements org. Release the service back to the ServiceManager.
| |