|
||||||||||
| 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(Class<? extends Annotation> scopeType)
Activate context. |
void |
deActivateContext(Class<? extends Annotation> scopeType)
Deactivate context. |
void |
destroyApplicationContext(Object parameter)
Destroys the application context and all of its components at the end of the application. |
void |
destroyConversationContext()
|
void |
destroyRequestContext(Object request)
|
void |
destroySessionContext(Object session)
|
void |
destroySingletonContext(Object parameter)
|
javax.enterprise.context.spi.Context |
getCustomContext(javax.enterprise.context.spi.Context context)
|
javax.enterprise.context.spi.Context |
getStandardContext(Class<? extends 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(Object parameter)
|
void |
initConversationContext(Object context)
|
void |
initRequestContext(Object request)
|
void |
initSessionContext(Object session)
|
void |
initSingletonContext(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(Object request)
public javax.enterprise.context.spi.Context getCustomContext(javax.enterprise.context.spi.Context context)
public void destroyRequestContext(Object request)
public void initSessionContext(Object session)
public void destroySessionContext(Object session)
public void initApplicationContext(Object parameter)
public void destroyApplicationContext(Object parameter)
parameter - parameter objectpublic void initSingletonContext(Object parameter)
public void destroySingletonContext(Object parameter)
public void initConversationContext(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
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(Class<? extends Annotation> scopeType)
null if no standard context exists for the given scopeTypepublic void activateContext(Class<? extends Annotation> scopeType)
public void deActivateContext(Class<? extends Annotation> scopeType)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||