org.apache.webbeans.context
Class AbstractContextsService

java.lang.Object
  extended by org.apache.webbeans.context.AbstractContextsService
All Implemented Interfaces:
ContextsService
Direct Known Subclasses:
DefaultContextsService

public abstract class AbstractContextsService
extends Object
implements ContextsService


Field Summary
protected  boolean supportsConversation
           
protected  WebBeansContext webBeansContext
           
 
Constructor Summary
protected AbstractContextsService(WebBeansContext webBeansContext)
           
 
Method Summary
 void destroy(Object destroyObject)
           
 void destroyOutdatedConversations(ConversationContext currentConversationContext)
          Destroy inactive (timed out) conversations.
 void endContext(Class<? extends Annotation> scopeType, Object endParameters)
           
 javax.enterprise.context.spi.Context getCurrentContext(Class<? extends Annotation> scopeType)
           
 javax.enterprise.context.spi.Context getCurrentContext(Class<? extends Annotation> scopeType, boolean createIfNotExists)
           
 void init(Object initializeObject)
           
 void removeThreadLocals()
           
 void setSupportConversations(boolean supportConversations)
           
 void startContext(Class<? extends Annotation> scopeType, Object startParameter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

webBeansContext

protected final WebBeansContext webBeansContext

supportsConversation

protected boolean supportsConversation
Constructor Detail

AbstractContextsService

protected AbstractContextsService(WebBeansContext webBeansContext)
Method Detail

destroy

public void destroy(Object destroyObject)
Specified by:
destroy in interface ContextsService

endContext

public void endContext(Class<? extends Annotation> scopeType,
                       Object endParameters)
Specified by:
endContext in interface ContextsService

getCurrentContext

public javax.enterprise.context.spi.Context getCurrentContext(Class<? extends Annotation> scopeType)
Specified by:
getCurrentContext in interface ContextsService

getCurrentContext

public javax.enterprise.context.spi.Context getCurrentContext(Class<? extends Annotation> scopeType,
                                                              boolean createIfNotExists)
Specified by:
getCurrentContext in interface ContextsService

init

public void init(Object initializeObject)
Specified by:
init in interface ContextsService

startContext

public void startContext(Class<? extends Annotation> scopeType,
                         Object startParameter)
                  throws javax.enterprise.context.ContextException
Specified by:
startContext in interface ContextsService
Throws:
javax.enterprise.context.ContextException

removeThreadLocals

public void removeThreadLocals()
Specified by:
removeThreadLocals in interface ContextsService

setSupportConversations

public void setSupportConversations(boolean supportConversations)
Specified by:
setSupportConversations in interface ContextsService

destroyOutdatedConversations

public void destroyOutdatedConversations(ConversationContext currentConversationContext)
Destroy inactive (timed out) conversations.



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