|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.webbeans.context.ContextFactory
public final class ContextFactory
JSR-299 based standard context related operations.
| Method Summary | |
|---|---|
static void |
activateContext(Class<? extends Annotation> scopeType)
Activate context. |
static void |
cleanUpContextFactory()
This must be called before a WebApp shuts down. |
static void |
deActivateContext(Class<? extends Annotation> scopeType)
Deactivate context. |
static void |
destroyApplicationContext(Object parameter)
Destroys the application context and all of its components at the end of the application. |
static void |
destroyConversationContext()
|
static void |
destroyRequestContext(Object request)
|
static void |
destroySessionContext(Object session)
|
static void |
destroySingletonContext(Object parameter)
|
static Context |
getCustomContext(Context context)
|
static Context |
getStandardContext(Class<? extends Annotation> scopeType)
Gets the standard context with given scope type. |
static Context |
getStandardContext(ContextsService contextService,
ContextTypes type)
|
static Context |
getStandardContext(ContextTypes type)
Gets the current context with given type. |
static void |
initApplicationContext(Object parameter)
Creates the application context at the application startup |
static void |
initConversationContext(Object context)
|
static void |
initRequestContext(Object request)
|
static void |
initSessionContext(Object session)
|
static void |
initSingletonContext(Object parameter)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void cleanUpContextFactory()
public static void initRequestContext(Object request)
public static Context getCustomContext(Context context)
public static void destroyRequestContext(Object request)
public static void initSessionContext(Object session)
public static void destroySessionContext(Object session)
public static void initApplicationContext(Object parameter)
parameter - parameter objectpublic static void destroyApplicationContext(Object parameter)
parameter - parameter objectpublic static void initSingletonContext(Object parameter)
public static void destroySingletonContext(Object parameter)
public static void initConversationContext(Object context)
public static void destroyConversationContext()
public static Context getStandardContext(ContextTypes type)
throws ContextNotActiveException
ContextNotActiveException - if context is not active
IllegalArgumentException - if the type is not a standard context
public static Context getStandardContext(ContextsService contextService,
ContextTypes type)
throws ContextNotActiveException
ContextNotActiveExceptionpublic static Context getStandardContext(Class<? extends Annotation> scopeType)
null if no standard context exists for the given scopeTypepublic static void activateContext(Class<? extends Annotation> scopeType)
public static void deActivateContext(Class<? extends Annotation> scopeType)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||