| java.lang.Object com.caucho.config.ConfigContext
ConfigContext | public class ConfigContext (Code) | | The ConfigContext contains the state of the current configuration.
|
Inner Class :static class ValidatorEntry | |
Method Summary | |
public void | addDestructor(ComponentImpl comp, Object value) | void | addValidator(Validator validator) | public boolean | canInject(ScopeContext scope) | public Object | configure(Object bean, Node top) External call to configure a bean based on a top-level node. | public void | configureAttribute(Object bean, Node attribute) External call to configure a bean's attribute. | public void | configureBean(Object bean, Node top) External call to configure a bean based on a top-level node, calling
init() and replaceObject() when done. | Object | configureCreate(Class type, Node node) Configures a new object given the object's type. | Object | configureValue(Node node) | public static ConfigContext | create() | public static ConfigContext | createForProgram() | ConfigType | createResinType(Attribute attrStrategy, Element node) Create a custom resin:type value. | public static RuntimeException | error(String msg, Node node) | public static RuntimeException | error(Throwable e, Node node) | public Object | evalObject(String exprString) | public Object | get(ComponentImpl comp) | public String | getBaseUri() | public Config | getConfig() | public static ConfigContext | getCurrent() | public static ConfigContext | getCurrentBuilder() | public ArrayList<Dependency> | getDependencyList() | ArrayList<Dependency> | getDependencyList(Node node) | public DependentScope | getDependentScope() | public ConfigELContext | getELContext() Returns the variable resolver. | Object | getELValue(Attribute attr, Node node) Returns the text value of the node. | Object | getElementValue(Attribute attr, Node node) Returns the text value of the node. | String | getTextValue(Node node) Returns the text value of the node. | static String | getValue(QName name, Node node, String defaultValue) | static boolean | hasChildren(Node node) | public boolean | isIgnoreEnvironment() | public void | put(ComponentImpl comp, Object obj) | static void | setCurrentBuilder(ConfigContext builder) | public void | setDependentScope(DependentScope scope) | static String | textValue(Node node) Returns the text value of the node. | static String | textValueNoTrim(Node node) Returns the text value of the node. | public String | toString() |
ConfigContext | public ConfigContext()(Code) | | |
addDestructor | public void addDestructor(ComponentImpl comp, Object value)(Code) | | WebBeans method
Parameters: aThis - Parameters: value - |
configure | public Object configure(Object bean, Node top) throws LineConfigException(Code) | | 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. |
configureAttribute | public void configureAttribute(Object bean, Node attribute) throws LineConfigException(Code) | | External call to configure a bean's attribute.
Parameters: bean - the bean to be configured Parameters: attribute - the node representing the configured attribute throws: LineConfigException - |
configureBean | public void configureBean(Object bean, Node top) throws LineConfigException(Code) | | 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 Parameters: top - the top-level XML configuration node the configured object, or the factory generated object |
configureCreate | Object configureCreate(Class type, Node node) throws Exception(Code) | | Configures a new object given the object's type.
Parameters: type - the expected type of the object Parameters: node - the configuration node the configured object throws: Exception - |
evalObject | public Object evalObject(String exprString) throws ELException(Code) | | Evaluate as an object
|
getBaseUri | public String getBaseUri()(Code) | | Returns the file var
|
getTextValue | String getTextValue(Node node)(Code) | | Returns the text value of the node.
|
hasChildren | static boolean hasChildren(Node node)(Code) | | |
isIgnoreEnvironment | public boolean isIgnoreEnvironment()(Code) | | |
put | public void put(ComponentImpl comp, Object obj)(Code) | | WebBeans dependent scope setting
Parameters: aThis - Parameters: obj - |
textValue | static String textValue(Node node)(Code) | | Returns the text value of the node.
|
textValueNoTrim | static String textValueNoTrim(Node node)(Code) | | Returns the text value of the node.
|
|
|