org.apache.cocoon.components.web3.impl
Class Web3DataSourceSelectorImpl

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.components.web3.impl.Web3DataSourceSelectorImpl
All Implemented Interfaces:
Disposable, Configurable, LogEnabled, Serviceable, ServiceSelector, ThreadSafe

public class Web3DataSourceSelectorImpl
extends AbstractLogEnabled
implements ServiceSelector, Disposable, Serviceable, Configurable, ThreadSafe

TBD

Since:
2.1
Version:
CVS $Id: Web3DataSourceSelectorImpl.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Michael Gerzabek

Field Summary
protected  Configuration configuration
           
protected  ServiceManager manager
          The service manager instance
 
Constructor Summary
Web3DataSourceSelectorImpl()
           
 
Method Summary
 void configure(Configuration configuration)
           
 void dispose()
          Dispose properly of the pool
 boolean isSelectable(Object obj)
           
 void release(Object object)
           
 Object select(Object obj)
           
 void service(ServiceManager manager)
          Set the current ServiceManager instance used by this Serviceable.
 
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
 

Field Detail

manager

protected ServiceManager manager
The service manager instance


configuration

protected Configuration configuration
Constructor Detail

Web3DataSourceSelectorImpl

public Web3DataSourceSelectorImpl()
Method Detail

service

public void service(ServiceManager manager)
             throws ServiceException
Set the current ServiceManager instance used by this Serviceable.

Specified by:
service in interface Serviceable
Throws:
ServiceException

configure

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

isSelectable

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

select

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

release

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

dispose

public void dispose()
Dispose properly of the pool

Specified by:
dispose in interface Disposable


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