Class WrapperServiceManager
java.lang.Object
org.apache.avalon.framework.service.WrapperServiceManager
- All Implemented Interfaces:
ServiceManager
This is a
ServiceManager implementation that can wrap around a legacy
ComponentManager object effectively adapting a ComponentManager
interface to a ServiceManager interface.- Since:
- 4.1.4
- Version:
- CVS $Revision: 1.10 $ $Date: 2004/02/11 14:34:26 $
- Author:
- Avalon Development Team
-
Constructor Summary
ConstructorsConstructorDescriptionWrapperServiceManager(ComponentManager componentManager) This constructor is a constructor for a WrapperServiceManager. -
Method Summary
-
Constructor Details
-
WrapperServiceManager
This constructor is a constructor for a WrapperServiceManager.- Parameters:
componentManager- the ComponentManager instance that is being wrapped
-
-
Method Details
-
lookup
Retrieve a service using specified key.- Specified by:
lookupin interfaceServiceManager- Parameters:
key- the key to use to lookup component- Returns:
- the matching service
- Throws:
ServiceException- if unable to provide the service- See Also:
-
hasService
Return true if the component is available in ServiceManager.- Specified by:
hasServicein interfaceServiceManager- Parameters:
key- the lookup- Returns:
- true if the component is available in ServiceManager
-
release
Release the service back to the ServiceManager.- Specified by:
releasein interfaceServiceManager- Parameters:
service- the service
-