org.jboss.seam.contexts
Class Contexts
java.lang.Object
org.jboss.seam.contexts.Contexts
public class Contexts
- extends Object
Provides access to the current contexts associated with the thread.
- Author:
- Gavin King, Thomas Heute
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Contexts
public Contexts()
getEventContext
public static Context getEventContext()
getMethodContext
public static Context getMethodContext()
getPageContext
public static Context getPageContext()
getSessionContext
public static Context getSessionContext()
getApplicationContext
public static Context getApplicationContext()
getConversationContext
public static Context getConversationContext()
getBusinessProcessContext
public static Context getBusinessProcessContext()
isConversationContextActive
public static boolean isConversationContextActive()
isEventContextActive
public static boolean isEventContextActive()
isMethodContextActive
public static boolean isMethodContextActive()
isPageContextActive
public static boolean isPageContextActive()
isSessionContextActive
public static boolean isSessionContextActive()
isApplicationContextActive
public static boolean isApplicationContextActive()
isBusinessProcessContextActive
public static boolean isBusinessProcessContextActive()
removeFromAllContexts
public static void removeFromAllContexts(String name)
- Remove the named component from all contexts.
lookupInStatefulContexts
public static Object lookupInStatefulContexts(String name)
- Search for a named attribute in all contexts, in the
following order: method, event, page, conversation,
session, business process, application.
- Returns:
- the first component found, or null