org.jboss.webbeans.context
Class ApplicationContext

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

public class ApplicationContext
extends AbstractBeanMapContext

The Application context

Author:
Nicklas Karlsson
See Also:
ApplicationContext

Field Summary
static ApplicationContext INSTANCE
           
 
Constructor Summary
protected ApplicationContext()
          Constructor
 
Method Summary
 BeanMap getBeanMap()
          Gets the bean map
 boolean isActive()
          Indicates if the context is active
 void setActive(boolean active)
          Sets the active state of the context
 void setBeanMap(BeanMap applicationBeanMap)
          Sets the bean map
 java.lang.String toString()
           
 
Methods inherited from class org.jboss.webbeans.context.AbstractBeanMapContext
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
 

Field Detail

INSTANCE

public static ApplicationContext INSTANCE
Constructor Detail

ApplicationContext

protected ApplicationContext()
Constructor

Method Detail

getBeanMap

public BeanMap getBeanMap()
Gets the bean map

Specified by:
getBeanMap in class AbstractBeanMapContext
Returns:
The bean map

setBeanMap

public void setBeanMap(BeanMap applicationBeanMap)
Sets the bean map

Parameters:
applicationBeanMap - The bean map

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


Copyright © 2008-2009. All Rights Reserved.