org.codehaus.plexus.personality.avalon
Class AvalonServiceSelector

java.lang.Object
  extended by 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 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

Field Summary
static String SELECTABLE_ROLE_KEY
          Selectable role configuration tag.
 
Constructor Summary
AvalonServiceSelector()
           
 
Method Summary
 void configure(org.apache.avalon.framework.configuration.Configuration configuration)
           
 boolean isSelectable(Object hint)
           
 void release(Object component)
           
 Object select(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
 

Field Detail

SELECTABLE_ROLE_KEY

public static final String SELECTABLE_ROLE_KEY
Selectable role configuration tag.

See Also:
Constant Field Values
Constructor Detail

AvalonServiceSelector

public AvalonServiceSelector()
Method Detail

select

public Object select(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(Object hint)
Specified by:
isSelectable in interface org.apache.avalon.framework.service.ServiceSelector
See Also:
ServiceSelector.isSelectable(java.lang.Object)

release

public void release(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-2012 Codehaus. All Rights Reserved.