org.apache.cocoon.acting
Class AbstractConfigurableAction

java.lang.Object
  |
  +--org.apache.avalon.framework.logger.AbstractLoggable
        |
        +--org.apache.cocoon.acting.AbstractAction
              |
              +--org.apache.cocoon.acting.AbstractConfigurableAction
All Implemented Interfaces:
Action, org.apache.avalon.framework.component.Component, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.logger.Loggable
Direct Known Subclasses:
ConfigurableComposerAction, HttpHeaderAction, RequestParameterExistsAction, SessionPropagatorAction, SessionStateAction

public abstract class AbstractConfigurableAction
extends AbstractAction
implements org.apache.avalon.framework.configuration.Configurable

AbstractConfigurableAction gives you the infrastructure for easily deploying more Actions that take default parameters.

Version:
CVS $Id: AbstractConfigurableAction.java,v 1.5 2002/02/22 06:59:26 cziegeler Exp $
Author:
Christian Haul

Field Summary
protected  HashMap settings
          Stores (global) configuration parameters as key / value pairs.
 
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
 
Fields inherited from interface org.apache.cocoon.acting.Action
ROLE
 
Constructor Summary
AbstractConfigurableAction()
           
 
Method Summary
 void configure(org.apache.avalon.framework.configuration.Configuration conf)
          Configures the Action.
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLoggable
getLogger, setLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.cocoon.acting.Action
act
 

Field Detail

settings

protected HashMap settings
Stores (global) configuration parameters as key / value pairs.
Constructor Detail

AbstractConfigurableAction

public AbstractConfigurableAction()
Method Detail

configure

public void configure(org.apache.avalon.framework.configuration.Configuration conf)
               throws org.apache.avalon.framework.configuration.ConfigurationException
Configures the Action. Takes the children from the Configuration and stores them them as key (configuration name) and value (configuration value) in settings.
This automates parsing of flat string-only configurations. For nested configurations, override this function in your action.
Specified by:
configure in interface org.apache.avalon.framework.configuration.Configurable


Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.