org.apache.cocoon.woody.util
Class SimpleServiceSelector
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
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 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleServiceSelector
public SimpleServiceSelector(String hintShortHand,
Class componentClass)
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.