public class ResultsManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected TypeCache<ActionResult> |
allResults |
protected ContextInjectorComponent |
contextInjectorComponent |
Constructor and Description |
---|
ResultsManager() |
Modifier and Type | Method and Description |
---|---|
protected ActionResult |
createResult(java.lang.Class<? extends ActionResult> actionResultClass)
Creates new
ActionResult . |
java.util.Set<ActionResult> |
getAllActionResults()
Returns all action results as new set.
|
protected void |
initializeResult(ActionResult result)
Initializes action result.
|
ActionResult |
lookup(ActionRequest actionRequest,
java.lang.Object resultObject)
Lookups for
action result handler
based on current action request and action method
result object. |
protected ActionResult |
register(ActionResult result)
Registers new action result instance.
|
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. |
@PetiteInject protected ContextInjectorComponent contextInjectorComponent
protected final TypeCache<ActionResult> allResults
public java.util.Set<ActionResult> getAllActionResults()
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.protected ActionResult register(ActionResult result)
public ActionResult lookup(ActionRequest actionRequest, java.lang.Object resultObject)
action result handler
based on current action request
and action method
result object.protected void initializeResult(ActionResult result)
protected ActionResult createResult(java.lang.Class<? extends ActionResult> actionResultClass)
ActionResult
.Copyright © 2003-present Jodd Team