org.jboss.webbeans.context
Class AbstractThreadLocalMapContext

java.lang.Object
  extended by org.jboss.webbeans.context.AbstractContext
      extended by org.jboss.webbeans.context.AbstractMapContext
          extended by org.jboss.webbeans.context.AbstractThreadLocalMapContext
All Implemented Interfaces:
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
 BeanStore getBeanStore()
          Gets the bean store
protected  boolean isCreationLockRequired()
          If Context need to inhibit concurrent instance creation then true, else false.
 void setBeanStore(BeanStore beanStore)
          Sets the bean store
 
Methods inherited from class org.jboss.webbeans.context.AbstractMapContext
destroy, get, get
 
Methods inherited from class org.jboss.webbeans.context.AbstractContext
getActive, getScopeType, 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 BeanStore getBeanStore()
Gets the bean store

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

setBeanStore

public void setBeanStore(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


Copyright © 2011. All Rights Reserved.