pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.component.core
Class CommandGeneratorConfig

java.lang.Object
  extended by org.torweg.pulse.configuration.AbstractConfigBean
      extended by org.torweg.pulse.component.core.CommandGeneratorConfig
All Implemented Interfaces:
java.io.Serializable, ConfigBean

public class CommandGeneratorConfig
extends AbstractConfigBean

list the commands for the CommandGenerator.

Version:
$Revision: 1446 $
Author:
Thomas Weber
See Also:
Serialized Form

Constructor Summary
CommandGeneratorConfig()
           
 
Method Summary
 java.util.Map<java.lang.String,java.lang.String> buildCommands(java.util.Map<java.lang.String,java.lang.String> commands, ServiceRequest request)
          builds the commands defined in the config file.
 void init(org.jdom.Element conf)
          initialises the CommandGeneratorConfig.
 
Methods inherited from class org.torweg.pulse.configuration.AbstractConfigBean
buildClass, buildInstance, lastModified, setLastModified
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandGeneratorConfig

public CommandGeneratorConfig()
Method Detail

buildCommands

public final java.util.Map<java.lang.String,java.lang.String> buildCommands(java.util.Map<java.lang.String,java.lang.String> commands, ServiceRequest request)
builds the commands defined in the config file.

Parameters:
commands - the map to hold the generated commands
request - the service request
Returns:
the modified map of generated commands

init

public final void init(org.jdom.Element conf)
initialises the CommandGeneratorConfig.

It preprocesses all commands specified in the XML to leave as little work as possible to be done on a per request basis.

Parameters:
conf - the configuration XML