org.jboss.seam.contexts
Class Lifecycle

java.lang.Object
  extended by org.jboss.seam.contexts.Lifecycle

public class Lifecycle
extends Object

Methods for setup and teardown of Seam contexts.

Author:
Gavin King, Thomas Heute

Constructor Summary
Lifecycle()
           
 
Method Summary
static void beginApplication(Map<String,Object> app)
           
static void beginCall()
           
static Context beginMethod()
           
static void beginSession(Map<String,Object> session)
           
static void cleanupApplication()
           
static void destroyConversationContext(Map<String,Object> session, String conversationId)
           
static void endApplication()
           
static void endCall()
           
static void endMethod(Context context)
           
static void endRequest()
           
static void endSession(Map<String,Object> session)
           
static Map<String,Object> getApplication()
           
static boolean isApplicationInitialized()
           
static boolean isDestroying()
           
static void mockApplication()
          Deprecated. Use setupApplication()
static void setupApplication()
           
static void startDestroying()
           
static void stopDestroying()
           
static void unmockApplication()
          Deprecated. Use cleanupApplication()
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Lifecycle

public Lifecycle()
Method Detail

getApplication

public static Map<String,Object> getApplication()

isApplicationInitialized

public static boolean isApplicationInitialized()

beginApplication

public static void beginApplication(Map<String,Object> app)

endApplication

public static void endApplication()

startDestroying

public static void startDestroying()

stopDestroying

public static void stopDestroying()

isDestroying

public static boolean isDestroying()

beginCall

public static void beginCall()

endCall

public static void endCall()

mockApplication

@Deprecated
public static void mockApplication()
Deprecated. Use setupApplication()


unmockApplication

@Deprecated
public static void unmockApplication()
Deprecated. Use cleanupApplication()


setupApplication

public static void setupApplication()

cleanupApplication

public static void cleanupApplication()

beginMethod

public static Context beginMethod()

endMethod

public static void endMethod(Context context)

endRequest

public static void endRequest()

destroyConversationContext

public static void destroyConversationContext(Map<String,Object> session,
                                              String conversationId)

beginSession

public static void beginSession(Map<String,Object> session)

endSession

public static void endSession(Map<String,Object> session)