|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.portal.common.reflect.Reflection
public class Reflection
| Constructor Summary | |
|---|---|
Reflection()
|
|
| Method Summary | ||
|---|---|---|
static java.lang.reflect.Method |
findMethod(java.lang.Class clazz,
java.lang.String methodName,
java.lang.Class[] parameterTypes)
Search a method on the specified class. |
|
static
|
safeCast(java.lang.Object value,
java.lang.Class<T> type)
Attempt to cast the value argument to the provided type argument. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Reflection()
| Method Detail |
|---|
public static java.lang.reflect.Method findMethod(java.lang.Class clazz,
java.lang.String methodName,
java.lang.Class[] parameterTypes)
throws java.lang.IllegalArgumentException
clazz - the class to inspectmethodName - the method nameparameterTypes - the parameter types
java.lang.IllegalArgumentException - if one argument is null
public static <T> T safeCast(java.lang.Object value,
java.lang.Class<T> type)
throws java.lang.IllegalArgumentException
value - the value to casttype - the type to downcast
java.lang.IllegalArgumentException - if the type argument is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||