Class ConfigHelper
- java.lang.Object
-
- org.apache.jackrabbit.vault.fs.config.ConfigHelper
-
public class ConfigHelper extends java.lang.Object
ConfigHelper
...
-
-
Constructor Summary
Constructors Constructor Description ConfigHelper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
create(org.w3c.dom.Element elem)
java.lang.String
getDefaultClass(java.lang.String name)
java.util.Map
getDefaultClasses()
java.lang.String
getDefaultPackage(java.lang.String name)
java.util.Map
getDefaultPackages()
static java.lang.reflect.Method
getMethod(java.lang.Object obj, java.lang.String name, java.lang.Class... params)
static java.lang.String
getMethodName(java.lang.String prefix, java.lang.String name)
static boolean
hasSetter(java.lang.Object obj, java.lang.String name)
static <T> T
invokeGetter(java.lang.Object obj, java.lang.String name, java.lang.Class<T> T)
static boolean
setField(java.lang.Object obj, java.lang.String name, java.lang.Object value)
-
-
-
Method Detail
-
getDefaultPackages
public java.util.Map getDefaultPackages()
-
getDefaultClasses
public java.util.Map getDefaultClasses()
-
getDefaultPackage
public java.lang.String getDefaultPackage(java.lang.String name)
-
getDefaultClass
public java.lang.String getDefaultClass(java.lang.String name)
-
create
public java.lang.Object create(org.w3c.dom.Element elem) throws ConfigurationException
- Throws:
ConfigurationException
-
getMethodName
public static java.lang.String getMethodName(java.lang.String prefix, java.lang.String name)
-
getMethod
public static java.lang.reflect.Method getMethod(java.lang.Object obj, java.lang.String name, java.lang.Class... params)
-
hasSetter
public static boolean hasSetter(java.lang.Object obj, java.lang.String name) throws ConfigurationException
- Throws:
ConfigurationException
-
setField
public static boolean setField(java.lang.Object obj, java.lang.String name, java.lang.Object value) throws ConfigurationException
- Throws:
ConfigurationException
-
invokeGetter
public static <T> T invokeGetter(java.lang.Object obj, java.lang.String name, java.lang.Class<T> T) throws ConfigurationException
- Throws:
ConfigurationException
-
-