org.apache.cocoon.core.container.handler
Class PoolableComponentHandler
java.lang.Object
org.apache.cocoon.core.container.handler.AbstractComponentHandler
org.apache.cocoon.core.container.handler.AbstractFactoryHandler
org.apache.cocoon.core.container.handler.NonThreadSafePoolableComponentHandler
org.apache.cocoon.core.container.handler.PoolableComponentHandler
- All Implemented Interfaces:
- ComponentHandler
- public class PoolableComponentHandler
- extends NonThreadSafePoolableComponentHandler
This is an extension to the NonThreadSafePoolableComponentHandler
that uses proxies to make the poolable components thread safe.
- Since:
- 2.2
- Version:
- $Id: PoolableComponentHandler.java 312637 2005-10-10 13:00:42Z cziegeler $
Field Summary |
protected Class[] |
interfaces
All the interfaces for the proxy |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
interfaces
protected final Class[] interfaces
- All the interfaces for the proxy
PoolableComponentHandler
public PoolableComponentHandler(ComponentInfo info,
Logger logger,
ComponentFactory factory,
Configuration config)
throws Exception
- Create a PoolableComponentHandler which manages a pool of Components
created by the specified factory object.
- Parameters:
factory
- The factory object which is responsible for creating the components
managed by the ComponentHandler.config
- The configuration to use to configure the pool.
doGet
protected Object doGet()
throws Exception
- Description copied from class:
AbstractComponentHandler
- Concrete implementation of getting a component.
- Overrides:
doGet
in class NonThreadSafePoolableComponentHandler
- Throws:
Exception
doPut
protected void doPut(Object component)
throws Exception
- Description copied from class:
AbstractComponentHandler
- Concrete implementation of putting back a component.
- Overrides:
doPut
in class NonThreadSafePoolableComponentHandler
- Throws:
Exception
doInitialize
protected void doInitialize()
- Overrides:
doInitialize
in class NonThreadSafePoolableComponentHandler
createProxy
protected Object createProxy()
Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.