org.apache.avalon.framework.component
public class WrapperComponentManager extends Object implements ComponentManager
Since: 4.1.4
Version: $Id: WrapperComponentManager.java 30977 2004-07-30 03:57:54 -0500 (Fri, 30 Jul 2004) niclas $
Field Summary | |
---|---|
ServiceManager | m_manager
The service manager we are adapting. |
Constructor Summary | |
---|---|
WrapperComponentManager(ServiceManager manager)
Creation of a new wrapper component manger using a supplied
service manager as a source backing the wrapped. |
Method Summary | |
---|---|
boolean | hasComponent(String key)
Check to see if a Component exists for a key.
|
Component | lookup(String key)
Retrieve a component via a key.
|
void | release(Component component)
Return the Component when you are finished with it. |
Parameters: manager the service manager backing the wrapper.
Component
exists for a key.
Parameters: key a string identifying the key to check.
Returns: True if the component exists, False if it does not.
Parameters: key the key
Returns: the component
Throws: ComponentException if unable to aquire component
Component
when you are finished with it. This
allows the ComponentManager
to handle the End-Of-Life Lifecycle
events associated with the Component. Please note, that no Exceptions
should be thrown at this point. This is to allow easy use of the
ComponentManager system without having to trap Exceptions on a release.
Parameters: component The Component we are releasing.