com.caucho.config
Class ConfigContext

java.lang.Object
  extended by com.caucho.config.ConfigContext

public class ConfigContext
extends java.lang.Object

The ConfigContext contains the state of the current configuration.


Constructor Summary
ConfigContext()
           
ConfigContext(ComponentImpl component, java.lang.Object value, ScopeContext scope)
           
ConfigContext(ScopeContext scope)
           
 
Method Summary
 void addDestructor(ComponentImpl comp, java.lang.Object value)
          WebBeans method
 boolean canInject(ScopeContext scope)
           
 java.lang.Object configure(java.lang.Object bean, org.w3c.dom.Node top)
          External call to configure a bean based on a top-level node.
 void configureAttribute(java.lang.Object bean, org.w3c.dom.Node attribute)
          External call to configure a bean's attribute.
 void configureBean(java.lang.Object bean, org.w3c.dom.Node top)
          External call to configure a bean based on a top-level node, calling init() and replaceObject() when done.
static ConfigContext create()
           
 java.lang.Object create(org.w3c.dom.Node childNode, ConfigType type)
           
static ConfigContext createForProgram()
           
static java.lang.RuntimeException error(java.lang.String msg, org.w3c.dom.Node node)
           
static java.lang.RuntimeException error(java.lang.Throwable e, org.w3c.dom.Node node)
           
 java.lang.Object evalObject(java.lang.String exprString)
          Evaluate as an object
 java.lang.Object get(ComponentImpl comp)
          Returns the component value for the dependent scope
 java.lang.String getBaseUri()
          Returns the file var
 Config getConfig()
           
static ConfigContext getCurrent()
           
static ConfigContext getCurrentBuilder()
           
 java.util.ArrayList<Dependency> getDependencyList()
           
 DependentScope getDependentScope()
           
 ConfigELContext getELContext()
          Returns the variable resolver.
 boolean isIgnoreEnvironment()
           
 void put(ComponentImpl comp, java.lang.Object obj)
          WebBeans dependent scope setting
 void setDependentScope(DependentScope scope)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConfigContext

public ConfigContext()

ConfigContext

public ConfigContext(ComponentImpl component,
                     java.lang.Object value,
                     ScopeContext scope)

ConfigContext

public ConfigContext(ScopeContext scope)
Method Detail

create

public static ConfigContext create()

createForProgram

public static ConfigContext createForProgram()

getCurrentBuilder

public static ConfigContext getCurrentBuilder()

getCurrent

public static ConfigContext getCurrent()

getBaseUri

public java.lang.String getBaseUri()
Returns the file var


addDestructor

public void addDestructor(ComponentImpl comp,
                          java.lang.Object value)
WebBeans method

Parameters:
aThis -
value -

canInject

public boolean canInject(ScopeContext scope)

get

public java.lang.Object get(ComponentImpl comp)
Returns the component value for the dependent scope

Parameters:
aThis -
Returns:

getConfig

public Config getConfig()

put

public void put(ComponentImpl comp,
                java.lang.Object obj)
WebBeans dependent scope setting

Parameters:
aThis -
obj -

isIgnoreEnvironment

public boolean isIgnoreEnvironment()

configure

public java.lang.Object configure(java.lang.Object bean,
                                  org.w3c.dom.Node top)
                           throws LineConfigException
External call to configure a bean based on a top-level node. The init() and replaceObject() are not called.

Parameters:
bean - the object to be configured.
Throws:
LineConfigException

configureBean

public void configureBean(java.lang.Object bean,
                          org.w3c.dom.Node top)
                   throws LineConfigException
External call to configure a bean based on a top-level node, calling init() and replaceObject() when done.

Parameters:
bean - the bean to be configured
top - the top-level XML configuration node
Throws:
LineConfigException

configureAttribute

public void configureAttribute(java.lang.Object bean,
                               org.w3c.dom.Node attribute)
                        throws LineConfigException
External call to configure a bean's attribute.

Parameters:
bean - the bean to be configured
attribute - the node representing the configured attribute
Throws:
LineConfigException

create

public java.lang.Object create(org.w3c.dom.Node childNode,
                               ConfigType type)
                        throws ConfigException
Throws:
ConfigException

setDependentScope

public void setDependentScope(DependentScope scope)

getDependentScope

public DependentScope getDependentScope()

getDependencyList

public java.util.ArrayList<Dependency> getDependencyList()

getELContext

public ConfigELContext getELContext()
Returns the variable resolver.


evalObject

public java.lang.Object evalObject(java.lang.String exprString)
                            throws ELException
Evaluate as an object

Throws:
ELException

error

public static java.lang.RuntimeException error(java.lang.String msg,
                                               org.w3c.dom.Node node)

error

public static java.lang.RuntimeException error(java.lang.Throwable e,
                                               org.w3c.dom.Node node)

toString

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