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 CommandGenerator

java.lang.Object
  extended by org.torweg.pulse.bundle.Controller
      extended by org.torweg.pulse.component.core.CommandGenerator
All Implemented Interfaces:
DeprecatedConfigurable

public class CommandGenerator
extends Controller
implements DeprecatedConfigurable

is a Controller which generates Commands based on the configuration stored in its ConfigBean.

Version:
$Revision: 1954 $
Author:
Thomas Weber
See Also:
CommandGeneratorConfig, ConfigBean

Nested Class Summary
 
Nested classes/interfaces inherited from class org.torweg.pulse.bundle.Controller
Controller.AlwaysRun
 
Constructor Summary
CommandGenerator()
           
 
Method Summary
 void init(ConfigBean config)
          used to initialise the bundle from its configuration.
 CommandGeneratorResult run(Bundle bundle, ServiceRequest request)
          builds the command links defined in the controllers config.
 
Methods inherited from class org.torweg.pulse.bundle.Controller
getAlwaysRun, isAlwaysRun, setAlwaysRun
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandGenerator

public CommandGenerator()
Method Detail

run

@AnyAction
public final CommandGeneratorResult run(Bundle bundle, ServiceRequest request)
builds the command links defined in the controllers config.

Parameters:
bundle - the bundle
request - the service request
Returns:
a result with the command links

init

public final void init(ConfigBean config)
Description copied from interface: DeprecatedConfigurable
used to initialise the bundle from its configuration.

Specified by:
init in interface DeprecatedConfigurable
Parameters:
config - the config bean