|
||||||||||
| 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.
| Constructor Summary | |
|---|---|
ContextFactory(WebBeansContext webBeansContext)
|
|
| Method Summary | |
|---|---|
void |
activateContext(java.lang.Class<? extends java.lang.annotation.Annotation> scopeType)
Activate context. |
void |
deActivateContext(java.lang.Class<? extends java.lang.annotation.Annotation> scopeType)
Deactivate context. |
void |
destroyApplicationContext(java.lang.Object parameter)
Destroys the application context and all of its components at the end of the application. |
void |
destroyConversationContext()
|
void |
destroyRequestContext(java.lang.Object request)
|
void |
destroySessionContext(java.lang.Object session)
|
void |
destroySingletonContext(java.lang.Object parameter)
|
javax.enterprise.context.spi.Context |
getCustomContext(javax.enterprise.context.spi.Context context)
|
javax.enterprise.context.spi.Context |
getStandardContext(java.lang.Class<? extends java.lang.annotation.Annotation> scopeType)
Gets the standard context with given scope type. |
javax.enterprise.context.spi.Context |
getStandardContext(ContextsService contextService,
ContextTypes type)
|
javax.enterprise.context.spi.Context |
getStandardContext(ContextTypes type)
Gets the current context with given type. |
void |
initApplicationContext(java.lang.Object parameter)
|
void |
initConversationContext(java.lang.Object context)
|
void |
initRequestContext(java.lang.Object request)
|
void |
initSessionContext(java.lang.Object session)
|
void |
initSingletonContext(java.lang.Object parameter)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContextFactory(WebBeansContext webBeansContext)
| Method Detail |
|---|
public void initRequestContext(java.lang.Object request)
public javax.enterprise.context.spi.Context getCustomContext(javax.enterprise.context.spi.Context context)
public void destroyRequestContext(java.lang.Object request)
public void initSessionContext(java.lang.Object session)
public void destroySessionContext(java.lang.Object session)
public void initApplicationContext(java.lang.Object parameter)
public void destroyApplicationContext(java.lang.Object parameter)
parameter - parameter objectpublic void initSingletonContext(java.lang.Object parameter)
public void destroySingletonContext(java.lang.Object parameter)
public void initConversationContext(java.lang.Object context)
public void destroyConversationContext()
public javax.enterprise.context.spi.Context getStandardContext(ContextTypes type)
throws javax.enterprise.context.ContextNotActiveException
javax.enterprise.context.ContextNotActiveException - if context is not active
java.lang.IllegalArgumentException - if the type is not a standard context
public javax.enterprise.context.spi.Context getStandardContext(ContextsService contextService,
ContextTypes type)
throws javax.enterprise.context.ContextNotActiveException
javax.enterprise.context.ContextNotActiveExceptionpublic javax.enterprise.context.spi.Context getStandardContext(java.lang.Class<? extends java.lang.annotation.Annotation> scopeType)
null if no standard context exists for the given scopeTypepublic void activateContext(java.lang.Class<? extends java.lang.annotation.Annotation> scopeType)
public void deActivateContext(java.lang.Class<? extends java.lang.annotation.Annotation> scopeType)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||