| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.components.modules.output.AbstractOutputModule
public abstract class AbstractOutputModule
AbstractOutputModule gives you the infrastructure for easily deploying more output modules.
In order to get at the logger, use getLogger().
| Field Summary | |
|---|---|
protected  HashMap | 
settings
Stores (global) configuration parameters as key /
 value pairs. | 
| Fields inherited from interface org.apache.cocoon.components.modules.output.OutputModule | 
|---|
ROLE | 
| Constructor Summary | |
|---|---|
AbstractOutputModule()
 | 
|
| Method Summary | |
|---|---|
protected  boolean | 
attributeExists(Map objectModel,
                String trans_place,
                String name)
Returns a whether an transient attribute already exists.  | 
 void | 
configure(Configuration conf)
Configures the module.  | 
 void | 
dispose()
Dispose  | 
protected  Map | 
prepareCommit(Map objectModel,
              String trans_place)
Returns a map containing all transient attributes and remove them i.e. attributes set with transientSetAttribute(Map, String, String, Object) since the last call to
 rollback(Map, String) or prepareCommit(Map, String) | 
protected  void | 
rollback(Map objectModel,
         String trans_place)
Clears all uncommitted transient attributes.  | 
protected  void | 
transientSetAttribute(Map objectModel,
                      String trans_place,
                      String name,
                      Object value)
Utility method to store parameters in a map as request attribute until either rollback(Map, String) or prepareCommit(Map, String)
 is called. | 
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled | 
|---|
enableLogging, getLogger, 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.components.modules.output.OutputModule | 
|---|
commit, rollback, setAttribute | 
| Field Detail | 
|---|
protected HashMap settings
key /
 value pairs.
| Constructor Detail | 
|---|
public AbstractOutputModule()
| Method Detail | 
|---|
public void configure(Configuration conf)
               throws ConfigurationException
Takes all elements nested in component declaration and stores
 them as key-value pairs in settings. Nested
 configuration option are not catered for. This way global
 configuration options can be used.
For nested configurations override this function.
configure in interface ConfigurableConfigurationExceptionpublic void dispose()
dispose in interface Disposable
protected void transientSetAttribute(Map objectModel,
                                     String trans_place,
                                     String name,
                                     Object value)
rollback(Map, String) or prepareCommit(Map, String)
 is called.
objectModel - - the objectModeltrans_place - - request attribute name used for the transient dataname - - name of the attribute to setvalue - - attribute value
protected void rollback(Map objectModel,
                        String trans_place)
objectModel - - the objectModeltrans_place - - request attribute name used for the transient data
protected boolean attributeExists(Map objectModel,
                                  String trans_place,
                                  String name)
transientSetAttribute(Map, String, String, Object) since the last call to
 rollback(Map, String) or prepareCommit(Map, String)
objectModel - - the objectModeltrans_place - - request attribute name used for the transient data
protected Map prepareCommit(Map objectModel,
                            String trans_place)
transientSetAttribute(Map, String, String, Object) since the last call to
 rollback(Map, String) or prepareCommit(Map, String)
objectModel - - the objectModeltrans_place - - request attribute name used for the transient data
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||