|
||||||||||
| 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.programmatic.ProgrammaticModelDrivenConversationSupport<T>
T - public abstract class ProgrammaticModelDrivenConversationSupport<T extends Serializable>
This class makes it simple to manage models with conversation-scoped
life-cycles programmatically.
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.
Use of this class requires zero configuration (no interceptors, etc.).
| Field Summary | |
|---|---|
protected ScopeContainer |
scopeContainer
|
| Fields inherited from class com.opensymphony.xwork2.ActionSupport |
|---|
LOG |
| Fields inherited from interface com.opensymphony.xwork2.Action |
|---|
ERROR, INPUT, LOGIN, NONE, SUCCESS |
| Constructor Summary | |
|---|---|
ProgrammaticModelDrivenConversationSupport()
|
|
| Method Summary | |
|---|---|
protected void |
beginConversations()
Begins new instances of this class's conversations |
protected void |
continueConversations()
Continues this class's conversations associated with the current request |
protected void |
endConversations()
Ends this class's conversations associated with the current request |
T |
getModel()
The model is scoped to the conversations indicated by ProgrammaticModelDrivenConversation.getConversations() |
protected String |
getModelName()
The name of the model used to identify it in the ConversationContext. |
void |
prepare()
|
void |
setModel(T model)
Set the model instance. |
void |
setScopeContainerProvider(ScopeContainerProvider scopeContainerProvider)
|
| 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 |
| Methods inherited from interface com.google.code.rees.scope.struts2.programmatic.ProgrammaticModelDrivenConversation |
|---|
getConversations |
| Field Detail |
|---|
protected ScopeContainer scopeContainer
| Constructor Detail |
|---|
public ProgrammaticModelDrivenConversationSupport()
| Method Detail |
|---|
public void setScopeContainerProvider(ScopeContainerProvider scopeContainerProvider)
public T getModel()
ProgrammaticModelDrivenConversation.getConversations()
getModel in interface com.opensymphony.xwork2.ModelDriven<T extends Serializable>public void setModel(T model)
ProgrammaticModelDrivenConversation.getConversations()
setModel in interface ProgrammaticModelDrivenConversation<T extends Serializable>protected String getModelName()
ConversationContext.
This can be overridden to provide the name of choice. The default is
this.getClass().getName().
public void prepare()
prepare in interface com.opensymphony.xwork2.Preparableprotected void beginConversations()
protected void continueConversations()
protected void endConversations()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||