org.jboss.weld.context
Class AbstractApplicationContext

java.lang.Object
  extended by org.jboss.weld.context.AbstractContext
      extended by org.jboss.weld.context.AbstractMapContext
          extended by org.jboss.weld.context.AbstractApplicationContext
All Implemented Interfaces:
javax.enterprise.context.spi.Context
Direct Known Subclasses:
ApplicationContext, SingletonContext

public abstract class AbstractApplicationContext
extends AbstractMapContext

The Application context

Author:
Nicklas Karlsson
See Also:
AbstractApplicationContext

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

Constructor Detail

AbstractApplicationContext

public AbstractApplicationContext(java.lang.Class<? extends java.lang.annotation.Annotation> scope)
Constructor

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 applicationBeanStore)
Sets the bean store

Parameters:
applicationBeanStore - The bean store

isActive

public boolean isActive()
Indicates if the context is active

Specified by:
isActive in interface javax.enterprise.context.spi.Context
Overrides:
isActive in class AbstractContext
Returns:
True if active, false otherwise
See Also:
Context.isActive()

setActive

public void setActive(boolean active)
Sets the active state of the context

Overrides:
setActive in class AbstractContext
Parameters:
active - The new state

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

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 © 2008-2009 Seam Framework. All Rights Reserved.