org.codehaus.plexus.personality.avalon
Class AvalonServiceSelector
java.lang.Object
org.codehaus.plexus.personality.avalon.AvalonServiceSelector
- All Implemented Interfaces:
- org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.service.Serviceable, org.apache.avalon.framework.service.ServiceSelector
public class AvalonServiceSelector
- extends java.lang.Object
- implements org.apache.avalon.framework.service.ServiceSelector, org.apache.avalon.framework.service.Serviceable, org.apache.avalon.framework.configuration.Configurable
AvalonServiceSelector selects components from the ComponentRepository based
on their role hint.
- Since:
- Feb 11, 2003
- Author:
- Dan Diephouse
Method Summary |
void |
configure(org.apache.avalon.framework.configuration.Configuration configuration)
|
boolean |
isSelectable(java.lang.Object hint)
|
void |
release(java.lang.Object component)
|
java.lang.Object |
select(java.lang.Object hint)
|
void |
service(org.apache.avalon.framework.service.ServiceManager serviceManager)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SELECTABLE_ROLE_KEY
public static final java.lang.String SELECTABLE_ROLE_KEY
- Selectable role configuration tag.
- See Also:
- Constant Field Values
AvalonServiceSelector
public AvalonServiceSelector()
select
public java.lang.Object select(java.lang.Object hint)
throws org.apache.avalon.framework.service.ServiceException
- Specified by:
select
in interface org.apache.avalon.framework.service.ServiceSelector
- Throws:
org.apache.avalon.framework.service.ServiceException
- See Also:
ServiceSelector.select(java.lang.Object)
isSelectable
public boolean isSelectable(java.lang.Object hint)
- Specified by:
isSelectable
in interface org.apache.avalon.framework.service.ServiceSelector
- See Also:
ServiceSelector.isSelectable(java.lang.Object)
release
public void release(java.lang.Object component)
- Specified by:
release
in interface org.apache.avalon.framework.service.ServiceSelector
- See Also:
ServiceSelector.release(java.lang.Object)
service
public void service(org.apache.avalon.framework.service.ServiceManager serviceManager)
throws org.apache.avalon.framework.service.ServiceException
- Specified by:
service
in interface org.apache.avalon.framework.service.Serviceable
- Throws:
org.apache.avalon.framework.service.ServiceException
- See Also:
Serviceable.service(org.apache.avalon.framework.service.ServiceManager)
configure
public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
throws org.apache.avalon.framework.configuration.ConfigurationException
- Specified by:
configure
in interface org.apache.avalon.framework.configuration.Configurable
- Throws:
org.apache.avalon.framework.configuration.ConfigurationException
- See Also:
Configurable.configure(org.apache.avalon.framework.configuration.Configuration)
Copyright © 2001-2009 Codehaus. All Rights Reserved.