@Module public class XmlConfigContext extends java.lang.Object
Constructor and Description |
---|
XmlConfigContext() |
XmlConfigContext(Config config) |
XmlConfigContext(XmlConfigContext parent) |
Modifier and Type | Method and Description |
---|---|
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() |
public static final QName TEXT
public XmlConfigContext()
public XmlConfigContext(XmlConfigContext parent)
public XmlConfigContext(Config config)
public static XmlConfigContext create()
public static XmlConfigContext createForProgram()
public static XmlConfigContext getCurrentBuilder()
public static XmlConfigContext getCurrent()
public InjectionPoint getInjectionPoint()
public void setInjectionPoint(InjectionPoint ij)
public java.lang.String getBaseUri()
public java.lang.Object get(Bean<?> bean)
aThis
- public java.lang.Object findByName(java.lang.String name)
public CreationalContext<?> setCreationalContext(CreationalContext<?> cxt)
public CreationalContext<?> getCreationalContext()
public Config getConfig()
public boolean isIgnoreEnvironment()
public java.lang.Object configure(java.lang.Object bean, org.w3c.dom.Node top) throws LineConfigException
bean
- the object to be configured.LineConfigException
public void configureBean(java.lang.Object bean, org.w3c.dom.Node top) throws LineConfigException
bean
- the bean to be configuredtop
- the top-level XML configuration nodeLineConfigException
public void configureAttribute(java.lang.Object bean, org.w3c.dom.Node attribute) throws LineConfigException
bean
- the bean to be configuredattribute
- the node representing the configured attributeLineConfigException
public java.lang.Object configureNode(org.w3c.dom.Node node, java.lang.Object bean, ConfigType<?> beanType) throws LineConfigException
typeStrategy
- the strategy for handling the bean's typebean
- the bean instancetop
- the configuration topLineConfigException
public java.lang.Object create(org.w3c.dom.Node childNode, ConfigType<?> type) throws ConfigException
ConfigException
public java.util.ArrayList<Dependency> getDependencyList()
public static ConfigELContext getELContext()
public java.lang.String toString()
toString
in class java.lang.Object