ServiceSelector implementation that can wrap around a legacy
ComponentSelector object effectively adapting a ComponentSelector
interface to a ServiceSelector interface.
This class implements the Component interface because it is used in
environments which expect all components to implement Component.
| Modifier and Type | Field and Description |
|---|---|
| private final String | m_key
The role that this selector was aquired via. |
| private final ComponentSelector | m_selector
The Selector we are wrapping. |
| Access | Constructor and Description |
|---|---|
| public | WrapperServiceSelector(final String
the key used to aquire this selector key, final ComponentSelector the selector to wrap selector)This constructor is a constructor for a ComponentServiceManager |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv ComponentSelector | Returns: TheComponentSelector being wrapped.The |
| public boolean | Returns: True if the component is available, False if it not.a policy)Object containing the selection criteriaImplements org. Object exists relative to the supplied policy.
|
| public void | release(Object
The object)Object we are releasing.Implements org. Object when you are finished with it.
|
| public Object | Returns: the servicethe policy policy)Implements org. |
| m_key | back to summary |
|---|---|
| private final String m_key The role that this selector was aquired via. | |
| m_selector | back to summary |
|---|---|
| private final ComponentSelector m_selector The Selector we are wrapping. | |
| WrapperServiceSelector | back to summary |
|---|---|
| public WrapperServiceSelector(final String key, final ComponentSelector selector) This constructor is a constructor for a ComponentServiceManager
| |
| getWrappedSelector | back to summary |
|---|---|
| pack-priv ComponentSelector getWrappedSelector() The
| |
| isSelectable | back to summary |
|---|---|
| public boolean isSelectable(final Object policy) Implements org. Check to see if a | |
| release | back to summary |
|---|---|
| public void release(Object object) Implements org. Return the | |
| select | back to summary |
|---|---|
| public Object select(final Object policy) throws ServiceException Implements org. Select a service based on a policy.
| |