|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectthings.thinger.service.httptool.ActionManager
things.thinger.service.httptool.stock.ActionManager_Stock
public class ActionManager_Stock
This is a stock implementation of the action manager.
This will cache a local commander for general use by the actions. For this to work, the service has to have command and response
channels set in the local properties, like this (or similar):
kb.core.service.httptoolservice.local.command_channel=kb.core.service.localcommandservice
kb.core.service.httptoolservice.local.response_channel=kb.core.service.httptoolservice
Internally, the names are uppercase. Externally, the names are not case sensitive.
Version History
EPG - Initial - 18 NOV 07
| Field Summary |
|---|
| Fields inherited from class things.thinger.service.httptool.ActionManager |
|---|
si |
| Constructor Summary | |
|---|---|
ActionManager_Stock()
|
|
| Method Summary | |
|---|---|
void |
addMapping(java.lang.String actionName,
java.lang.String actionClassName)
Add a mapping. |
static LocalCommander |
getCommander()
Get the local commander. |
java.lang.String |
getMainName()
Get the main action. |
protected void |
init_chain()
The initialization chain. |
protected Action |
load(java.lang.String actionName)
Load an action by name. |
| Methods inherited from class things.thinger.service.httptool.ActionManager |
|---|
get, init |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ActionManager_Stock()
| Method Detail |
|---|
public static LocalCommander getCommander()
public void addMapping(java.lang.String actionName,
java.lang.String actionClassName)
throws java.lang.Throwable
actionName - The name of the action.actionClassName - The action class name.
java.lang.Throwable - if either parameter is null.
public java.lang.String getMainName()
throws ThingsException
getMainName in class ActionManagerThingsException - for any problem.
protected Action load(java.lang.String actionName)
throws java.lang.Throwable
load in class ActionManageractionName - the name of the action.
java.lang.Throwable - for any problem (except for it not being found). This is usually fatal.
protected void init_chain()
throws ThingsException
It is synchronized because we can't let anyone else muddle with myCommander.
init_chain in class ActionManagerThingsException - for any problem.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||