com.caucho.config.xml
Class XmlConfigContext

java.lang.Object
  extended by com.caucho.config.xml.XmlConfigContext

@Module
public class XmlConfigContext
extends java.lang.Object

The ConfigContext contains the state of the current configuration.


Field Summary
static QName TEXT
           
 
Constructor Summary
XmlConfigContext()
           
XmlConfigContext(Config config)
           
XmlConfigContext(XmlConfigContext parent)
           
 
Method Summary
 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.
 java.lang.Object configureNode(org.w3c.dom.Node node, java.lang.Object bean, ConfigType<?> beanType)
          Configures a bean, calling its init() and replaceObject() methods.
static XmlConfigContext create()
           
 java.lang.Object create(org.w3c.dom.Node childNode, ConfigType<?> type)
           
static XmlConfigContext createForProgram()
           
 java.lang.Object findByName(java.lang.String name)
           
 java.lang.Object get(Bean<?> bean)
          Returns the component value for the dependent scope
 java.lang.String getBaseUri()
          Returns the file var
 Config getConfig()
           
 CreationalContext<?> getCreationalContext()
           
static XmlConfigContext getCurrent()
           
static XmlConfigContext getCurrentBuilder()
           
 java.util.ArrayList<Dependency> getDependencyList()
           
static ConfigELContext getELContext()
          Returns the variable resolver.
 InjectionPoint getInjectionPoint()
           
 boolean isIgnoreEnvironment()
           
 CreationalContext<?> setCreationalContext(CreationalContext<?> cxt)
           
 void setInjectionPoint(InjectionPoint ij)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TEXT

public static final QName TEXT
Constructor Detail

XmlConfigContext

public XmlConfigContext()

XmlConfigContext

public XmlConfigContext(XmlConfigContext parent)

XmlConfigContext

public XmlConfigContext(Config config)
Method Detail

create

public static XmlConfigContext create()

createForProgram

public static XmlConfigContext createForProgram()

getCurrentBuilder

public static XmlConfigContext getCurrentBuilder()

getCurrent

public static XmlConfigContext getCurrent()

getInjectionPoint

public InjectionPoint getInjectionPoint()

setInjectionPoint

public void setInjectionPoint(InjectionPoint ij)

getBaseUri

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


get

public java.lang.Object get(Bean<?> bean)
Returns the component value for the dependent scope

Parameters:
aThis -
Returns:

findByName

public java.lang.Object findByName(java.lang.String name)

setCreationalContext

public CreationalContext<?> setCreationalContext(CreationalContext<?> cxt)

getCreationalContext

public CreationalContext<?> getCreationalContext()

getConfig

public Config getConfig()

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

configureNode

public java.lang.Object configureNode(org.w3c.dom.Node node,
                                      java.lang.Object bean,
                                      ConfigType<?> beanType)
                               throws LineConfigException
Configures a bean, calling its init() and replaceObject() methods.

Parameters:
typeStrategy - the strategy for handling the bean's type
bean - the bean instance
top - the configuration top
Returns:
the configured bean, possibly the replaced object
Throws:
LineConfigException

create

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

getDependencyList

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

getELContext

public static ConfigELContext getELContext()
Returns the variable resolver.


toString

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