public final class IntrospectionUtils
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
IntrospectionUtils.PropertySource |
Constructor and Description |
---|
IntrospectionUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
callMethod1(java.lang.Object target,
java.lang.String methodN,
java.lang.Object param1,
java.lang.String typeParam1,
java.lang.ClassLoader cl) |
static java.lang.Object |
callMethodN(java.lang.Object target,
java.lang.String methodN,
java.lang.Object[] params,
java.lang.Class<?>[] typeParams) |
static java.lang.String |
capitalize(java.lang.String name)
Reverse of Introspector.decapitalize
|
static void |
clear() |
static java.lang.Object |
convert(java.lang.String object,
java.lang.Class<?> paramType) |
static java.lang.reflect.Method |
findMethod(java.lang.Class<?> c,
java.lang.String name,
java.lang.Class<?>[] params) |
static java.lang.reflect.Method[] |
findMethods(java.lang.Class<?> c) |
static java.lang.Object |
getProperty(java.lang.Object o,
java.lang.String name) |
static java.lang.String |
replaceProperties(java.lang.String value,
java.util.Hashtable<java.lang.Object,java.lang.Object> staticProp,
IntrospectionUtils.PropertySource[] dynamicProp)
Replace ${NAME} with the property value
|
static boolean |
setProperty(java.lang.Object o,
java.lang.String name,
java.lang.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(java.lang.Object o,
java.lang.String name,
java.lang.String value,
boolean invokeSetProperty) |
public static boolean setProperty(java.lang.Object o, java.lang.String name, java.lang.String value)
public static boolean setProperty(java.lang.Object o, java.lang.String name, java.lang.String value, boolean invokeSetProperty)
public static java.lang.Object getProperty(java.lang.Object o, java.lang.String name)
public static java.lang.String replaceProperties(java.lang.String value, java.util.Hashtable<java.lang.Object,java.lang.Object> staticProp, IntrospectionUtils.PropertySource[] dynamicProp)
public static java.lang.String capitalize(java.lang.String name)
public static void clear()
public static java.lang.reflect.Method[] findMethods(java.lang.Class<?> c)
public static java.lang.reflect.Method findMethod(java.lang.Class<?> c, java.lang.String name, java.lang.Class<?>[] params)
public static java.lang.Object callMethod1(java.lang.Object target, java.lang.String methodN, java.lang.Object param1, java.lang.String typeParam1, java.lang.ClassLoader cl) throws java.lang.Exception
java.lang.Exception
public static java.lang.Object callMethodN(java.lang.Object target, java.lang.String methodN, java.lang.Object[] params, java.lang.Class<?>[] typeParams) throws java.lang.Exception
java.lang.Exception
public static java.lang.Object convert(java.lang.String object, java.lang.Class<?> paramType)
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.