org.apache.cocoon.core.container.handler
Class AbstractFactoryHandler

java.lang.Object
  extended byorg.apache.cocoon.core.container.handler.AbstractComponentHandler
      extended byorg.apache.cocoon.core.container.handler.AbstractFactoryHandler
All Implemented Interfaces:
ComponentHandler
Direct Known Subclasses:
NonThreadSafePoolableComponentHandler, SingleThreadedComponentHandler, ThreadSafeComponentHandler

public abstract class AbstractFactoryHandler
extends AbstractComponentHandler

This class acts like a Factory to instantiate the correct version of the component handler that you need.

Since:
2.2
Version:
$Id: AbstractFactoryHandler.java 312637 2005-10-10 13:00:42Z cziegeler $

Field Summary
protected  ComponentFactory factory
          This factory is used to created new objects
 
Fields inherited from class org.apache.cocoon.core.container.handler.AbstractComponentHandler
disposed, logger
 
Constructor Summary
AbstractFactoryHandler(ComponentInfo info, Logger logger, ComponentFactory factory)
          Creates a new ComponentHandler.
 
Method Summary
protected  void decommission(Object component)
          Decommission a component
 
Methods inherited from class org.apache.cocoon.core.container.handler.AbstractComponentHandler
canBeDisposed, dispose, doGet, doInitialize, doPut, get, getComponentHandler, getComponentHandler, getInfo, initialize, isSingleton, put
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

factory

protected final ComponentFactory factory
This factory is used to created new objects

Constructor Detail

AbstractFactoryHandler

public AbstractFactoryHandler(ComponentInfo info,
                              Logger logger,
                              ComponentFactory factory)
Creates a new ComponentHandler.

Method Detail

decommission

protected void decommission(Object component)
Decommission a component

Parameters:
component - Object to be decommissioned


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.