org.apache.avalon.framework.service
public class WrapperServiceSelector extends Object implements ServiceSelector
This class implements the Component interface because it is used in environments which expect all components to implement Component.
Since: 4.1.4
Version: $Id: WrapperServiceSelector.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. |
| ComponentSelector | m_selector
The Selector we are wrapping. |
| Constructor Summary | |
|---|---|
| WrapperServiceSelector(String key, ComponentSelector selector)
This constructor is a constructor for a ComponentServiceManager
| |
| Method Summary | |
|---|---|
| ComponentSelector | getWrappedSelector()
The WrapperServiceManager wraps ComponentSelectors in
WrapperServiceSelectors when they are looked up. |
| boolean | isSelectable(Object policy)
Check to see if a Object exists relative to the supplied policy.
|
| void | release(Object object)
Return the 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
Returns: The ComponentSelector 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 service
Throws: ServiceException if unable to select service