ServiceSelector implementation that can wrap around a legacy
ComponentSelector object effectively adapting a ComponentSelector
interface to a ServiceSelector interface.
| Modifier and Type | Field and Description |
|---|---|
| private final String | m_key
The role that this selector was aquired via. |
| private final ServiceSelector | m_selector
The Selector we are wrapping. |
| Access | Constructor and Description |
|---|---|
| public | WrapperComponentSelector(final String
the key used to aquire this selector key, final ServiceSelector the selector to wrap selector)This constructor is a constructor for a WrapperComponentSelector. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv ServiceSelector | Returns: TheServiceSelector being wrapped.The |
| public boolean | Returns: True if the component is available, False if it not.a policy)Object containing the selection criteriaImplements org. Component exists relative to the supplied policy.
|
| public void | release(final Component
The object)Object we are releasing.Implements org. Object when you are finished with it.
|
| public Component | Returns: the Componentthe 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 ServiceSelector m_selector The Selector we are wrapping. | |
| WrapperComponentSelector | back to summary |
|---|---|
| public WrapperComponentSelector(final String key, final ServiceSelector selector) This constructor is a constructor for a WrapperComponentSelector.
| |
| getWrappedSelector | back to summary |
|---|---|
| pack-priv ServiceSelector getWrappedSelector() The
| |
| hasComponent | back to summary |
|---|---|
| public boolean hasComponent(final Object policy) Implements org. Check to see if a | |
| release | back to summary |
|---|---|
| public void release(final Component object) Implements org. Return the | |
| select | back to summary |
|---|---|
| public Component select(final Object policy) throws ComponentException Implements org. Select a Component based on a policy.
| |