public final class IntrospectionUtils extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
IntrospectionUtils.PropertySource |
Constructor and Description |
---|
IntrospectionUtils() |
Modifier and Type | Method and Description |
---|---|
static Object |
callMethod1(Object target,
String methodN,
Object param1,
String typeParam1,
ClassLoader cl) |
static Object |
callMethodN(Object target,
String methodN,
Object[] params,
Class<?>[] typeParams) |
static String |
capitalize(String name)
Reverse of Introspector.decapitalize
|
static void |
clear() |
static Object |
convert(String object,
Class<?> paramType) |
static Method |
findMethod(Class<?> c,
String name,
Class<?>[] params) |
static Method[] |
findMethods(Class<?> c) |
static Object |
getProperty(Object o,
String name) |
static String |
replaceProperties(String value,
Hashtable<Object,Object> staticProp,
IntrospectionUtils.PropertySource[] dynamicProp)
Replace ${NAME} with the property value
|
static boolean |
setProperty(Object o,
String name,
String value)
Find a method with the right name If found, call the method ( if param is
int or boolean we'll convert value to the right type before) - that means
you can have setDebug(1).
|
static boolean |
setProperty(Object o,
String name,
String value,
boolean invokeSetProperty) |
public static boolean setProperty(Object o, String name, String value)
public static boolean setProperty(Object o, String name, String value, boolean invokeSetProperty)
public static String replaceProperties(String value, Hashtable<Object,Object> staticProp, IntrospectionUtils.PropertySource[] dynamicProp)
public static void clear()
public static Object callMethod1(Object target, String methodN, Object param1, String typeParam1, ClassLoader cl) throws Exception
Exception
public static Object callMethodN(Object target, String methodN, Object[] params, Class<?>[] typeParams) throws Exception
Exception
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.