org.apache.avalon.framework.service
Class WrapperServiceManager
java.lang.Objectorg.apache.avalon.framework.service.WrapperServiceManager
- ServiceManager
public class WrapperServiceManager
extends java.lang.Object
implements ServiceManager
This is a ServiceManager implementation that can wrap around a legacy
ComponentManager object effectively adapting a ComponentManager
interface to a ServiceManager interface.
CVS $Revision: 1.10 $ $Date: 2004/02/11 14:34:26 $WrapperServiceManager(ComponentManager componentManager)- This constructor is a constructor for a WrapperServiceManager.
|
boolean | hasService(String key)- Return true if the component is available in ServiceManager.
|
Object | lookup(String key)- Retrieve a service using specified key.
|
void | release(Object service)- Release the service back to the ServiceManager.
|
WrapperServiceManager
public WrapperServiceManager(ComponentManager componentManager)
This constructor is a constructor for a WrapperServiceManager.
componentManager - the ComponentManager instance that is being wrapped
hasService
public boolean hasService(String key)
Return true if the component is available in ServiceManager.
- true if the component is available in ServiceManager
lookup
public Object lookup(String key)
throws ServiceException Retrieve a service using specified key.
key - the key to use to lookup component
release
public void release(Object service)
Release the service back to the ServiceManager.