org.apache.avalon.framework.service
public class WrapperServiceSelector extends Object implements ServiceSelector
This class implements the {@link Component} interface because it is used in environments which expect all components to implement Component.
Version: CVS $Revision: 1.7 $ $Date: 2003/02/10 07:19:18 $
Constructor Summary | |
---|---|
WrapperServiceSelector(String key, ComponentSelector selector)
This constructor is a constructor for a ComponentServiceManager
|
Method Summary | |
---|---|
boolean | isSelectable(Object policy)
Check to see if a {@link Object} exists relative to the supplied policy.
|
void | release(Object object)
Return the {@link Object} when you are finished with it. |
Object | select(Object policy)
Select a service based on a policy.
|
Parameters: key the key used to aquire this selector selector the selector to wrap
Parameters: policy a {@link Object} containing the selection criteria
Returns: True if the component is available, False if it not.
Parameters: object The {@link Object} we are releasing.
Parameters: policy the policy
Returns: the service
Throws: ServiceException if unable to select service