org.apache.cocoon.woody.util
Class SimpleServiceSelector

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.woody.util.SimpleServiceSelector
All Implemented Interfaces:
Disposable, Configurable, LogEnabled, Serviceable, ServiceSelector

public class SimpleServiceSelector
extends AbstractLogEnabled
implements ServiceSelector, Configurable, LogEnabled, Serviceable, Disposable

A very simple ServiceSelector for ThreadSafe services.

Version:
$Id: SimpleServiceSelector.html 1304258 2012-03-23 10:09:27Z ilgrosso $

Constructor Summary
SimpleServiceSelector(String hintShortHand, Class componentClass)
           
 
Method Summary
 void configure(Configuration configuration)
           
 void dispose()
           
 boolean isSelectable(Object hint)
           
 void release(Object o)
           
 Object select(Object hint)
           
 void service(ServiceManager serviceManager)
           
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.avalon.framework.logger.LogEnabled
enableLogging
 

Constructor Detail

SimpleServiceSelector

public SimpleServiceSelector(String hintShortHand,
                             Class componentClass)
Method Detail

service

public void service(ServiceManager serviceManager)
             throws ServiceException
Specified by:
service in interface Serviceable
Throws:
ServiceException

configure

public void configure(Configuration configuration)
               throws ConfigurationException
Specified by:
configure in interface Configurable
Throws:
ConfigurationException

select

public Object select(Object hint)
              throws ServiceException
Specified by:
select in interface ServiceSelector
Throws:
ServiceException

isSelectable

public boolean isSelectable(Object hint)
Specified by:
isSelectable in interface ServiceSelector

release

public void release(Object o)
Specified by:
release in interface ServiceSelector

dispose

public void dispose()
Specified by:
dispose in interface Disposable


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.