|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjodd.madvoc.result.ResultsManager
public class ResultsManager
Manager for Madvoc results.
Field Summary | |
---|---|
protected java.util.Map<java.lang.String,ActionResult> |
results
|
protected WebApplication |
webapp
|
Constructor Summary | |
---|---|
ResultsManager(WebApplication webapp)
|
Method Summary | |
---|---|
protected ActionResult |
createResult(java.lang.Class<? extends ActionResult> actionResultClass)
Creates new ActionResult . |
ActionResult |
lookup(java.lang.Class<? extends ActionResult> resultClass)
Returns currently registered action for result class. |
ActionResult |
lookup(java.lang.String resultType)
Returns an action result handler for specified result type. |
ActionResult |
register(java.lang.Class<? extends ActionResult> resultClass)
Registers an action result handler and returns created ActionResult if
result with same type doesn't exist. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final WebApplication webapp
protected final java.util.Map<java.lang.String,ActionResult> results
Constructor Detail |
---|
public ResultsManager(WebApplication webapp)
Method Detail |
---|
public ActionResult register(java.lang.Class<? extends ActionResult> resultClass)
ActionResult
if
result with same type doesn't exist. Otherwise, returns existing result and created one will be ignored.
public ActionResult lookup(java.lang.Class<? extends ActionResult> resultClass)
public ActionResult lookup(java.lang.String resultType)
null
if result type is not previously registered.
protected ActionResult createResult(java.lang.Class<? extends ActionResult> actionResultClass)
ActionResult
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |