public class WebContextsService extends AbstractContextsService
ContextsService
implementation.| Modifier and Type | Field and Description |
|---|---|
protected FailOverService |
failoverService |
| Constructor and Description |
|---|
WebContextsService(WebBeansContext webBeansContext)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
activateContext(Class<? extends Annotation> scopeType)
This might be needed when you aim to start a new thread in a WebApp.
|
void |
destroy(Object destroyObject) |
void |
endContext(Class<? extends Annotation> scopeType,
Object endParameters) |
javax.enterprise.context.spi.Context |
getCurrentContext(Class<? extends Annotation> scopeType) |
SessionContextManager |
getSessionContextManager() |
void |
init(Object initializeObject) |
static void |
removeThreadLocals()
Removes the ThreadLocals from the ThreadMap to prevent memory leaks.
|
void |
startContext(Class<? extends Annotation> scopeType,
Object startParameter) |
boolean |
supportsContext(Class<? extends Annotation> scopeType) |
deActivateContextprotected FailOverService failoverService
public WebContextsService(WebBeansContext webBeansContext)
public static void removeThreadLocals()
public SessionContextManager getSessionContextManager()
public void init(Object initializeObject)
init in interface ContextsServiceinit in class AbstractContextsServicepublic void destroy(Object destroyObject)
destroy in interface ContextsServicedestroy in class AbstractContextsServicepublic void endContext(Class<? extends Annotation> scopeType, Object endParameters)
endContext in interface ContextsServiceendContext in class AbstractContextsServicepublic javax.enterprise.context.spi.Context getCurrentContext(Class<? extends Annotation> scopeType)
getCurrentContext in interface ContextsServicegetCurrentContext in class AbstractContextsServicepublic void startContext(Class<? extends Annotation> scopeType, Object startParameter) throws javax.enterprise.context.ContextException
startContext in interface ContextsServicestartContext in class AbstractContextsServicejavax.enterprise.context.ContextExceptionpublic boolean supportsContext(Class<? extends Annotation> scopeType)
supportsContext in interface ContextsServicesupportsContext in class AbstractContextsServicepublic void activateContext(Class<? extends Annotation> scopeType)
activateContext in interface ContextsServiceactivateContext in class AbstractContextsServicescopeType - Copyright © 2008-2013 The Apache Software Foundation. All Rights Reserved.