org.apache.cocoon.acting
Class AbstractConfigurableAction

java.lang.Object
  extended byorg.apache.cocoon.util.AbstractLogEnabled
      extended byorg.apache.cocoon.acting.AbstractAction
          extended byorg.apache.cocoon.acting.AbstractConfigurableAction
All Implemented Interfaces:
org.apache.cocoon.acting.Action, Configurable
Direct Known Subclasses:
ConfigurableServiceableAction

public abstract class AbstractConfigurableAction
extends AbstractAction
implements Configurable

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

Version:
$Id: AbstractConfigurableAction.html 1304280 2012-03-23 11:18:01Z ilgrosso $

Field Summary
protected  org.apache.cocoon.util.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(Configuration conf)
          Configures the Action.
 
Methods inherited from class org.apache.cocoon.util.AbstractLogEnabled
getLogger, setLogger
 
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 org.apache.cocoon.util.HashMap settings
Stores (global) configuration parameters as key / value pairs.

Constructor Detail

AbstractConfigurableAction

public AbstractConfigurableAction()
Method Detail

configure

public void configure(Configuration conf)
               throws 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 Configurable
Throws:
ConfigurationException


Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.