| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.apache.avalon.framework.service.WrapperServiceManager
This is a ServiceManager implementation that can wrap around a legacy
 ComponentManager object effectively adapting a ComponentManager
 interface to a ServiceManager interface.
| Constructor Summary | |
| WrapperServiceManager(ComponentManager componentManager)This constructor is a constructor for a WrapperServiceManager. | |
| Method Summary | |
|  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. | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public WrapperServiceManager(ComponentManager componentManager)
componentManager - the ComponentManager instance that is being wrapped| Method Detail | 
public Object lookup(String key)
              throws ServiceException
lookup in interface ServiceManagerkey - the key to use to lookup component
ServiceException - if unable to provide the serviceServiceManager.lookup(java.lang.String)public boolean hasService(String key)
hasService in interface ServiceManagerkey - the lookup
public void release(Object service)
release in interface ServiceManagerservice - the service| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||