ServiceSelector selects Objects based on a
supplied policy. The contract is that all the Objects implement the
same role.
org.apache.avalon.framework.service.Serviceable , org.apache.avalon.framework.service.ServiceSelector
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: True if the component is available, False if it not.a policy)Object containing the selection criteriaCheck to see if a |
| public void | |
| public Object |
| isSelectable | back to summary |
|---|---|
| public boolean isSelectable(Object policy) Check to see if a | |
| release | back to summary |
|---|---|
| public void release(Object object) Return the | |
| select | back to summary |
|---|---|
| public Object select(Object policy) throws ServiceException Select the
try
{
Generator input;
input = (Generator)selector.select( new URL("foo://demo/url") );
}
catch (...)
{
...
}
| |