org.jboss.weld.context
Class AbstractBoundContext<S>

java.lang.Object
  extended by org.jboss.weld.context.AbstractContext
      extended by org.jboss.weld.context.AbstractManagedContext
          extended by org.jboss.weld.context.AbstractBoundContext<S>
All Implemented Interfaces:
javax.enterprise.context.spi.Context, org.jboss.weld.context.BoundContext<S>, org.jboss.weld.context.ManagedContext
Direct Known Subclasses:
AbstractConversationContext, BoundRequestContextImpl, BoundSessionContextImpl, EjbRequestContextImpl, HttpRequestContextImpl, HttpSessionContextImpl

public abstract class AbstractBoundContext<S>
extends AbstractManagedContext
implements org.jboss.weld.context.BoundContext<S>

Base class for contexts using a thread local to store a bound bean context

Author:
Pete Muir

Constructor Summary
AbstractBoundContext(boolean multithreaded)
           
 
Method Summary
 void activate()
           
 void cleanup()
           
 void deactivate()
           
protected  BoundBeanStore getBeanStore()
          Gets the bean store
protected  void setBeanStore(BoundBeanStore beanStore)
          Sets the bean store
 
Methods inherited from class org.jboss.weld.context.AbstractManagedContext
invalidate, isActive, setActive
 
Methods inherited from class org.jboss.weld.context.AbstractContext
destroy, get, get, getContextual, getId, getServiceRegistry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.weld.context.BoundContext
associate, dissociate
 
Methods inherited from interface javax.enterprise.context.spi.Context
get, get, getScope, isActive
 

Constructor Detail

AbstractBoundContext

public AbstractBoundContext(boolean multithreaded)
Method Detail

getBeanStore

protected BoundBeanStore getBeanStore()
Gets the bean store

Specified by:
getBeanStore in class AbstractContext
Returns:
The bean store

setBeanStore

protected void setBeanStore(BoundBeanStore beanStore)
Sets the bean store

Parameters:
beanStore - The bean store

cleanup

public void cleanup()
Overrides:
cleanup in class AbstractManagedContext

activate

public void activate()
Specified by:
activate in interface org.jboss.weld.context.ManagedContext
Overrides:
activate in class AbstractManagedContext

deactivate

public void deactivate()
Specified by:
deactivate in interface org.jboss.weld.context.ManagedContext
Overrides:
deactivate in class AbstractManagedContext


Copyright © 2013 Seam Framework. All Rights Reserved.