org.apache.webbeans.web.context
Class WebContextsService

java.lang.Object
  extended by org.apache.webbeans.context.AbstractContextsService
      extended by org.apache.webbeans.web.context.WebContextsService
All Implemented Interfaces:
ContextsService

public class WebContextsService
extends AbstractContextsService

Web container ContextsService implementation.


Field Summary
protected  FailOverService failoverService
           
 
Constructor Summary
WebContextsService(WebBeansContext webBeansContext)
          Creates a new instance.
 
Method Summary
 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)
          
 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)
          
 
Methods inherited from class org.apache.webbeans.context.AbstractContextsService
deActivateContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

failoverService

protected FailOverService failoverService
Constructor Detail

WebContextsService

public WebContextsService(WebBeansContext webBeansContext)
Creates a new instance.

Method Detail

removeThreadLocals

public static void removeThreadLocals()
Removes the ThreadLocals from the ThreadMap to prevent memory leaks.


getSessionContextManager

public SessionContextManager getSessionContextManager()

init

public void init(Object initializeObject)

Specified by:
init in interface ContextsService
Overrides:
init in class AbstractContextsService

destroy

public void destroy(Object destroyObject)

Specified by:
destroy in interface ContextsService
Overrides:
destroy in class AbstractContextsService

endContext

public void endContext(Class<? extends Annotation> scopeType,
                       Object endParameters)

Specified by:
endContext in interface ContextsService
Overrides:
endContext in class AbstractContextsService

getCurrentContext

public Context getCurrentContext(Class<? extends Annotation> scopeType)

Specified by:
getCurrentContext in interface ContextsService
Overrides:
getCurrentContext in class AbstractContextsService

startContext

public void startContext(Class<? extends Annotation> scopeType,
                         Object startParameter)
                  throws ContextException

Specified by:
startContext in interface ContextsService
Overrides:
startContext in class AbstractContextsService
Throws:
ContextException

supportsContext

public boolean supportsContext(Class<? extends Annotation> scopeType)

Specified by:
supportsContext in interface ContextsService
Overrides:
supportsContext in class AbstractContextsService

activateContext

public void activateContext(Class<? extends Annotation> scopeType)
This might be needed when you aim to start a new thread in a WebApp.

Specified by:
activateContext in interface ContextsService
Overrides:
activateContext in class AbstractContextsService
Parameters:
scopeType -


Copyright © 2008–2014 The Apache Software Foundation. All rights reserved.