|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjodd.madvoc.component.ActionsManager
public class ActionsManager
Manages all Madvoc action registrations.
| Nested Class Summary | |
|---|---|
protected class |
ActionsManager.ActionPathChunksBinarySearch
Binary search for action paths chunks. |
| Field Summary | |
|---|---|
protected ActionMethodParser |
actionMethodParser
|
protected int |
actionsCount
|
protected jodd.util.collection.SortedArrayList<ActionConfigSet> |
list
|
protected jodd.util.BinarySearch<ActionConfigSet> |
listBS
|
protected ActionsManager.ActionPathChunksBinarySearch |
listMatch
|
protected MadvocConfig |
madvocConfig
|
protected java.util.HashMap<java.lang.String,ActionConfigSet> |
map
|
| Constructor Summary | |
|---|---|
ActionsManager()
|
|
| Method Summary | |
|---|---|
int |
getActionsCount()
Returns total number of registered actions. |
java.util.List<ActionConfig> |
getAllActionConfigurations()
Returns all registered action configurations. |
ActionConfig |
lookup(java.lang.String actionPath,
java.lang.String[] actionChunks,
java.lang.String method)
Returns action configurations for provided action path. |
protected int |
matchChunk(java.lang.String chunk,
int chunkNdx,
int macroNdx,
int low,
int high)
|
ActionConfig |
register(java.lang.Class actionClass,
java.lang.reflect.Method actionMethod)
|
ActionConfig |
register(java.lang.Class actionClass,
java.lang.reflect.Method actionMethod,
java.lang.String actionPath)
|
ActionConfig |
register(java.lang.Class actionClass,
java.lang.String actionMethod)
Registers action with provided action class and method name. |
ActionConfig |
register(java.lang.Class actionClass,
java.lang.String actionMethod,
java.lang.String actionPath)
Registers action with provided action path, class and method name. |
ActionConfig |
register(java.lang.String actionSignature)
Registers action with provided action signature. |
ActionConfig |
register(java.lang.String actionSignature,
java.lang.String actionPath)
Registers action with provided action signature. |
protected ActionConfig |
registerAction(java.lang.Class actionClass,
java.lang.reflect.Method actionMethod,
java.lang.String actionPath)
Registration single point. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
@PetiteInject protected ActionMethodParser actionMethodParser
@PetiteInject protected MadvocConfig madvocConfig
protected int actionsCount
protected final java.util.HashMap<java.lang.String,ActionConfigSet> map
protected final jodd.util.collection.SortedArrayList<ActionConfigSet> list
protected final ActionsManager.ActionPathChunksBinarySearch listMatch
protected final jodd.util.BinarySearch<ActionConfigSet> listBS
| Constructor Detail |
|---|
public ActionsManager()
| Method Detail |
|---|
public java.util.List<ActionConfig> getAllActionConfigurations()
public int getActionsCount()
public ActionConfig register(java.lang.String actionSignature)
public ActionConfig register(java.lang.String actionSignature,
java.lang.String actionPath)
public ActionConfig register(java.lang.Class actionClass,
java.lang.String actionMethod)
public ActionConfig register(java.lang.Class actionClass,
java.lang.String actionMethod,
java.lang.String actionPath)
public ActionConfig register(java.lang.Class actionClass,
java.lang.reflect.Method actionMethod,
java.lang.String actionPath)
public ActionConfig register(java.lang.Class actionClass,
java.lang.reflect.Method actionMethod)
protected ActionConfig registerAction(java.lang.Class actionClass,
java.lang.reflect.Method actionMethod,
java.lang.String actionPath)
ActionConfig.
public ActionConfig lookup(java.lang.String actionPath,
java.lang.String[] actionChunks,
java.lang.String method)
null if action path is not registered.
protected int matchChunk(java.lang.String chunk,
int chunkNdx,
int macroNdx,
int low,
int high)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||