com.google.code.rees.scope.struts2.programmatic
Class ProgrammaticModelDrivenConversationUtil

java.lang.Object
  extended by com.google.code.rees.scope.struts2.programmatic.ProgrammaticModelDrivenConversationUtil

public class ProgrammaticModelDrivenConversationUtil
extends Object

Utility class that uses the ConversationUtil and ProgrammaticModelDrivenConversation interface to assist in programmatic conversation management. Used by the ProgrammaticModelDrivenConversationSupport class. In most uses, actions should inherit from the ProgrammaticModelDrivenConversationSupport rather than using this class directly.

Author:
rees.byars

Constructor Summary
ProgrammaticModelDrivenConversationUtil()
           
 
Method Summary
static
<T extends ProgrammaticModelDrivenConversation<?>>
void
begin(T controller, long maxIdleTime)
           
static
<M extends Serializable,T extends ProgrammaticModelDrivenConversation<M>>
void
end(T controller)
           
static
<M extends Serializable,T extends ProgrammaticModelDrivenConversation<M>>
M
getModel(T controller, String modelKey)
           
static
<M extends Serializable,T extends ProgrammaticModelDrivenConversation<M>>
void
persist(T controller)
           
static
<M extends Serializable,T extends ProgrammaticModelDrivenConversation<M>>
void
setModel(M model, T controller, String modelKey)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProgrammaticModelDrivenConversationUtil

public ProgrammaticModelDrivenConversationUtil()
Method Detail

begin

public static <T extends ProgrammaticModelDrivenConversation<?>> void begin(T controller,
                                                                            long maxIdleTime)

persist

public static <M extends Serializable,T extends ProgrammaticModelDrivenConversation<M>> void persist(T controller)

end

public static <M extends Serializable,T extends ProgrammaticModelDrivenConversation<M>> void end(T controller)

getModel

public static <M extends Serializable,T extends ProgrammaticModelDrivenConversation<M>> M getModel(T controller,
                                                                                                   String modelKey)

setModel

public static <M extends Serializable,T extends ProgrammaticModelDrivenConversation<M>> void setModel(M model,
                                                                                                      T controller,
                                                                                                      String modelKey)


Copyright © 2012-2013. All Rights Reserved.