org.apache.cocoon.forms.util
Class SimpleServiceSelector

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

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

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 contextualize(Context context)
           
 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
 

Constructor Detail

SimpleServiceSelector

public SimpleServiceSelector(String hintShortHand,
                             Class componentClass)
Method Detail

contextualize

public void contextualize(Context context)
                   throws ContextException
Specified by:
contextualize in interface Contextualizable
Throws:
ContextException

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

dispose

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

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


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