jodd.madvoc
Class ActionsManager

java.lang.Object
  extended by jodd.madvoc.ActionsManager

public class ActionsManager
extends java.lang.Object

Manages all Madvoc actions.


Field Summary
protected  ActionMethodParser actionMethodParser
           
protected  java.util.Map<java.lang.String,ActionConfig> configs
           
protected  WebApplication webapp
           
 
Constructor Summary
ActionsManager(WebApplication webapp)
           
 
Method Summary
 java.util.Map<java.lang.String,ActionConfig> getAllActionConfigurations()
          Returns all registered action configurations.
protected  void initActionConfig(ActionConfig cfg)
          Initializes action configuration, if not alreadt initialized.
 ActionConfig lookup(java.lang.String actionPath)
          Returns action configurations for provided action path.
 boolean register(java.lang.Class actionClass, java.lang.String actionMethod)
          Registers action with provided action class and method name.
 boolean register(java.lang.reflect.Method actionMethod)
          Registers action with provided action method.
 boolean register(java.lang.String actionSignature)
          Registers action with provided action signature.
 boolean register(java.lang.String actionPath, java.lang.Class actionClass, java.lang.String actionMethod)
          Registers action with provided action path, class and method name.
 boolean register(java.lang.String actionPath, java.lang.reflect.Method actionMethod)
          Registers action with provided action method and specified action path.
protected  boolean registerAction(ActionConfig cfg)
          Registers new action configuration.
protected  boolean registerAction(java.lang.String actionPath, java.lang.Class actionClass, java.lang.String actionMethod)
          Registration single point.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

webapp

protected final WebApplication webapp

configs

protected final java.util.Map<java.lang.String,ActionConfig> configs

actionMethodParser

protected final ActionMethodParser actionMethodParser
Constructor Detail

ActionsManager

public ActionsManager(WebApplication webapp)
Method Detail

getAllActionConfigurations

public java.util.Map<java.lang.String,ActionConfig> getAllActionConfigurations()
Returns all registered action configurations. Should be used with care and usually only during configuration.


register

public boolean register(java.lang.String actionSignature)
Registers action with provided action signature. Returns true if there is no registration conflict.


register

public boolean register(java.lang.Class actionClass,
                        java.lang.String actionMethod)
Registers action with provided action class and method name. Returns true if there is no registration conflict.


register

public boolean register(java.lang.String actionPath,
                        java.lang.Class actionClass,
                        java.lang.String actionMethod)
Registers action with provided action path, class and method name. Returns true if there is no registration conflict.


register

public boolean register(java.lang.reflect.Method actionMethod)
Registers action with provided action method. Returns true if there is no registration conflict.


register

public boolean register(java.lang.String actionPath,
                        java.lang.reflect.Method actionMethod)
Registers action with provided action method and specified action path.


registerAction

protected boolean registerAction(java.lang.String actionPath,
                                 java.lang.Class actionClass,
                                 java.lang.String actionMethod)
Registration single point.


registerAction

protected boolean registerAction(ActionConfig cfg)
Registers new action configuration. Existing action configuration with the same action request is overwritten. If not specified, action path is resolved from provided configuration. Returns true if there is no registration conflict.


initActionConfig

protected void initActionConfig(ActionConfig cfg)
Initializes action configuration, if not alreadt initialized.


lookup

public ActionConfig lookup(java.lang.String actionPath)
Returns action configurations for provided action path. Returns null if action path is not already registered.



Copyright ©2008 Jodd Team