org.apache.cocoon.core.container.handler
Class AliasComponentHandler
java.lang.Object
org.apache.cocoon.core.container.handler.AbstractComponentHandler
org.apache.cocoon.core.container.handler.AliasComponentHandler
- All Implemented Interfaces:
- ComponentHandler
- public class AliasComponentHandler
- extends AbstractComponentHandler
A component handler used to alias roles: it delegates all its calls to another
handler.
- Since:
- 2.2
- Version:
- $Id: AliasComponentHandler.java 312637 2005-10-10 13:00:42Z cziegeler $
Method Summary |
protected Object |
doGet()
Concrete implementation of getting a component. |
protected void |
doInitialize()
|
protected void |
doPut(Object component)
Concrete implementation of putting back a component. |
boolean |
isSingleton()
Default here is to return false |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AliasComponentHandler
public AliasComponentHandler(Logger logger,
ComponentHandler aliasedHandler)
doGet
protected Object doGet()
throws Exception
- Description copied from class:
AbstractComponentHandler
- Concrete implementation of getting a component.
- Specified by:
doGet
in class AbstractComponentHandler
- Returns:
- a service
- Throws:
Exception
- if an error occurs
doPut
protected void doPut(Object component)
throws Exception
- Description copied from class:
AbstractComponentHandler
- Concrete implementation of putting back a component.
- Specified by:
doPut
in class AbstractComponentHandler
- Parameters:
component
- a Component
value
- Throws:
Exception
- if an error occurs
doInitialize
protected void doInitialize()
- Specified by:
doInitialize
in class AbstractComponentHandler
isSingleton
public boolean isSingleton()
- Description copied from class:
AbstractComponentHandler
- Default here is to return
false
- Specified by:
isSingleton
in interface ComponentHandler
- Overrides:
isSingleton
in class AbstractComponentHandler
Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.