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