|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.opensymphony.xwork2.ActionSupport
com.google.code.rees.scope.struts2.ModelDrivenConversationSupport<T>
T - public abstract class ModelDrivenConversationSupport<T extends Serializable>
This class makes it simple to manage models with conversation-scoped
life-cycles. It can be used in place of the
ConversationController annotation for people who hate annotations/meta-data.
All access to the model is through the getModel() and
setModel(Serializable) methods so that retrieval and insertion of
the model from and into conversation instances
can be managed on behalf of inheriting classes.
| Field Summary |
|---|
| Fields inherited from class com.opensymphony.xwork2.ActionSupport |
|---|
LOG |
| Fields inherited from interface com.opensymphony.xwork2.Action |
|---|
ERROR, INPUT, LOGIN, NONE, SUCCESS |
| Constructor Summary | |
|---|---|
ModelDrivenConversationSupport()
|
|
| Method Summary | |
|---|---|
T |
getModel()
The model is scoped to the conversations associated with the current request and action. |
protected String |
getModelName()
The name of the model used to identify it in the ConversationContext. |
void |
setModel(T model)
Set the model. |
| Methods inherited from class com.opensymphony.xwork2.ActionSupport |
|---|
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, doDefault, execute, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getFormatted, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, validate |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ModelDrivenConversationSupport()
| Method Detail |
|---|
public T getModel()
getModel in interface com.opensymphony.xwork2.ModelDriven<T extends Serializable>public void setModel(T model)
model - protected String getModelName()
ConversationContext.
This can be overridden to provide the name of choice. The default is
this.getClass().getName().
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||