|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.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(java.lang.String key)
Return true if the component is available in ServiceManager. |
java.lang.Object |
lookup(java.lang.String key)
Retrieve a service using specified key. |
void |
release(java.lang.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 java.lang.Object lookup(java.lang.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(java.lang.String key)
hasService in interface ServiceManagerkey - the lookup
public void release(java.lang.Object service)
release in interface ServiceManagerservice - the service
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||