public final class IntrospectionUtils extends Object
Constructor and Description |
---|
IntrospectionUtils() |
Modifier and Type | Method and Description |
---|---|
static Object |
callMethod1(Object target,
String methodN,
Object param1,
String typeParam1,
ClassLoader cl) |
static String |
capitalize(String name)
Reverse of Introspector.decapitalize
|
static Method |
findMethod(Class c,
String name,
Class[] params) |
static Object |
getProperty(Object o,
String name) |
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 String |
unCapitalize(String name) |
public static boolean setProperty(Object o, String name, String value)
public static Object callMethod1(Object target, String methodN, Object param1, String typeParam1, ClassLoader cl) throws Exception
Exception
Copyright © 2015 JBoss by Red Hat. All rights reserved.