org.jboss.weld.context
Class AbstractThreadLocalMapContext

java.lang.Object
  extended by org.jboss.weld.context.AbstractContext
      extended by org.jboss.weld.context.AbstractMapContext
          extended by org.jboss.weld.context.AbstractThreadLocalMapContext
All Implemented Interfaces:
javax.enterprise.context.spi.Context
Direct Known Subclasses:
ConversationContext, RequestContext, SessionContext

public abstract class AbstractThreadLocalMapContext
extends AbstractMapContext

Abstract base class for representing contexts with thread local bean storage

Author:
Pete Muir

Constructor Summary
AbstractThreadLocalMapContext(java.lang.Class<? extends java.lang.annotation.Annotation> scopeType)
           
 
Method Summary
 void cleanup()
           
 void destroy()
          Destroys the context
 org.jboss.weld.context.api.BeanStore getBeanStore()
          Gets the bean store
protected  boolean isCreationLockRequired()
          If Context need to inhibit concurrent instance creation then true, else false.
 void setBeanStore(org.jboss.weld.context.api.BeanStore beanStore)
          Sets the bean store
 
Methods inherited from class org.jboss.weld.context.AbstractMapContext
get, get, getContextual, getId
 
Methods inherited from class org.jboss.weld.context.AbstractContext
getScope, isActive, setActive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractThreadLocalMapContext

public AbstractThreadLocalMapContext(java.lang.Class<? extends java.lang.annotation.Annotation> scopeType)
Method Detail

getBeanStore

public org.jboss.weld.context.api.BeanStore getBeanStore()
Gets the bean store

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

setBeanStore

public void setBeanStore(org.jboss.weld.context.api.BeanStore beanStore)
Sets the bean store

Parameters:
beanStore - The bean store

isCreationLockRequired

protected boolean isCreationLockRequired()
Description copied from class: AbstractMapContext
If Context need to inhibit concurrent instance creation then true, else false.

Specified by:
isCreationLockRequired in class AbstractMapContext
Returns:
need lock

destroy

public void destroy()
Description copied from class: AbstractMapContext
Destroys the context

Overrides:
destroy in class AbstractMapContext

cleanup

public void cleanup()
Overrides:
cleanup in class AbstractMapContext


Copyright © 2008-2010 Seam Framework. All Rights Reserved.