org.apache.avalon.framework.component
public class WrapperComponentSelector extends Object implements ComponentSelector
Since: 4.1.4
Version: $Id: WrapperComponentSelector.java 30977 2004-07-30 03:57:54 -0500 (Fri, 30 Jul 2004) niclas $
Field Summary | |
---|---|
String | m_key
The role that this selector was aquired via. |
ServiceSelector | m_selector
The Selector we are wrapping. |
Constructor Summary | |
---|---|
WrapperComponentSelector(String key, ServiceSelector selector)
This constructor is a constructor for a WrapperComponentSelector.
|
Method Summary | |
---|---|
ServiceSelector | getWrappedSelector()
The WrapperComponentManager wraps ServiceSelectors in
WrapperServiceSelectors when they are looked up. |
boolean | hasComponent(Object policy)
Check to see if a Component exists relative to the supplied policy.
|
void | release(Component object)
Return the Object when you are finished with it. |
Component | select(Object policy)
Select a Component based on a policy.
|
Parameters: key the key used to aquire this selector selector the selector to wrap
Returns: The ServiceSelector being wrapped.
Parameters: policy a Object containing the selection criteria
Returns: True if the component is available, False if it not.
Parameters: object The Object we are releasing.
Parameters: policy the policy
Returns: the Component
Throws: ComponentException if unable to select service