org.apache.avalon.framework.component
public class WrapperComponentSelector extends Object implements ComponentSelector
Version: CVS $Revision: 1.8 $ $Date: 2003/02/11 07:13:45 $
Constructor Summary | |
---|---|
WrapperComponentSelector(String key, ServiceSelector selector)
This constructor is a constructor for a WrapperComponentSelector.
|
Method Summary | |
---|---|
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
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