| java.lang.Object com.caucho.config.Config
Config | public class Config (Code) | | Facade for Resin's configuration builder.
|
Method Summary | |
public static void | checkCanInstantiate(Class beanClass) Returns true if the class can be instantiated. | public Object | configure(Object obj, Path path) Configures a bean with a configuration file. | public Object | configure(Object obj, InputStream is) Configures a bean with a configuration file. | public Object | configure(Object obj, Path path, String schemaLocation) Configures a bean with a configuration file and schema. | public Object | configure(Object obj, Path path, Schema schema) Configures a bean with a configuration file and schema. | public Object | configure(Object obj, InputStream is, String schemaLocation) Configures a bean with a configuration file. | public Object | configure(Object obj, InputStream is, Schema schema) Configures a bean with a configuration file. | public Object | configure(Object obj, Node topNode) Configures a bean with a DOM. | public void | configureBean(Object obj, Path path, String schemaLocation) Configures a bean with a configuration file and schema. | public void | configureBean(Object obj, Path path) Configures a bean with a configuration file and schema. | public void | configureBean(Object obj, Node topNode) Configures a bean with a DOM. | public void | configureBean(Object obj, Path path, Schema schema) Configures a bean with a configuration file and schema. | public static ConfigException | error(Field field, String msg) | public static ConfigException | error(Method method, String msg) | public static boolean | evalBoolean(String str) Evaluates an EL boolean in the context. | public static String | evalString(String str) Evaluates an EL string in the context. | public static String | evalString(String str, HashMap<String, Object> varMap) Evaluates an EL string in the context. | public static Object | getCurrentVar(String var) Sets an EL configuration variable. | public static ConfigELContext | getELContext() Returns the variable resolver. | public static ELContext | getEnvironment() Returns the variable resolver. | public static ELContext | getEnvironment(HashMap<String, Object> varMap) | public static void | init(Object bean) | public static void | inject(Object bean) | public boolean | isEL() | public boolean | isIgnoreEnvironment() | public static String | location(Field field) | public static String | location(Method method) | public static Object | replaceObject(Object bean) | public static void | setAttribute(Object obj, String attr, Object value) Sets an attribute with a value. | public void | setEL(boolean isEL) | public void | setIgnoreEnvironment(boolean isIgnore) | public void | setResinInclude(boolean useResinInclude) Set true if resin:include should be allowed. | public static void | setStringAttribute(Object obj, String attr, String value) Sets an attribute with a value. | public static void | validate(Class cl, Class api) Returns true if the class can be instantiated. |
Config | public Config(ClassLoader loader)(Code) | | Parameters: loader - the class loader environment to use. |
checkCanInstantiate | public static void checkCanInstantiate(Class beanClass) throws ConfigException(Code) | | Returns true if the class can be instantiated.
|
configure | public Object configure(Object obj, Path path) throws ConfigException(Code) | | Configures a bean with a configuration file.
|
configure | public Object configure(Object obj, Path path, String schemaLocation) throws ConfigException(Code) | | Configures a bean with a configuration file and schema.
|
configure | public Object configure(Object obj, Path path, Schema schema) throws ConfigException(Code) | | Configures a bean with a configuration file and schema.
|
configureBean | public void configureBean(Object obj, Path path, String schemaLocation) throws Exception(Code) | | Configures a bean with a configuration file and schema.
|
configureBean | public void configureBean(Object obj, Path path) throws Exception(Code) | | Configures a bean with a configuration file and schema.
|
configureBean | public void configureBean(Object obj, Node topNode) throws Exception(Code) | | Configures a bean with a DOM. configureBean does not
apply init() or replaceObject().
|
configureBean | public void configureBean(Object obj, Path path, Schema schema) throws Exception(Code) | | Configures a bean with a configuration file and schema.
|
evalBoolean | public static boolean evalBoolean(String str) throws ELException(Code) | | Evaluates an EL boolean in the context.
|
evalString | public static String evalString(String str) throws ELException(Code) | | Evaluates an EL string in the context.
|
getCurrentVar | public static Object getCurrentVar(String var)(Code) | | Sets an EL configuration variable.
|
getEnvironment | public static ELContext getEnvironment()(Code) | | Returns the variable resolver.
|
init | public static void init(Object bean) throws ConfigException(Code) | | |
inject | public static void inject(Object bean) throws ConfigException(Code) | | |
isEL | public boolean isEL()(Code) | | True if EL expressions are allowed
|
isIgnoreEnvironment | public boolean isIgnoreEnvironment()(Code) | | True if environment tags are ignored
|
setAttribute | public static void setAttribute(Object obj, String attr, Object value) throws Exception(Code) | | Sets an attribute with a value.
Parameters: obj - the bean to be set Parameters: attr - the attribute name Parameters: value - the attribute value |
setEL | public void setEL(boolean isEL)(Code) | | True if EL expressions are allowed
|
setIgnoreEnvironment | public void setIgnoreEnvironment(boolean isIgnore)(Code) | | True if environment tags are ignored
|
setResinInclude | public void setResinInclude(boolean useResinInclude)(Code) | | Set true if resin:include should be allowed.
|
setStringAttribute | public static void setStringAttribute(Object obj, String attr, String value) throws Exception(Code) | | Sets an attribute with a value.
Parameters: obj - the bean to be set Parameters: attr - the attribute name Parameters: value - the attribute value |
validate | public static void validate(Class cl, Class api) throws ConfigException(Code) | | Returns true if the class can be instantiated.
|
|
|