org.jboss.webbeans.context
Class ApplicationContext

java.lang.Object
  extended by org.jboss.webbeans.context.AbstractContext
      extended by org.jboss.webbeans.context.AbstractMapContext
          extended by org.jboss.webbeans.context.ApplicationContext
All Implemented Interfaces:
Context, Service

public class ApplicationContext
extends AbstractMapContext
implements Service

The Application context

Author:
Nicklas Karlsson
See Also:
ApplicationContext

Constructor Summary
ApplicationContext()
          Constructor
 
Method Summary
 BeanStore getBeanStore()
          Gets the bean store
static ApplicationContext instance()
           
 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(BeanStore applicationBeanStore)
          Sets the bean store
 java.lang.String toString()
           
 
Methods inherited from class org.jboss.webbeans.context.AbstractMapContext
destroy, get, get
 
Methods inherited from class org.jboss.webbeans.context.AbstractContext
getActive, getScopeType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ApplicationContext

public ApplicationContext()
Constructor

Method Detail

instance

public static ApplicationContext instance()

getBeanStore

public BeanStore getBeanStore()
Gets the bean store

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

setBeanStore

public void setBeanStore(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 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 © 2011. All Rights Reserved.