uk.org.lidalia.sysoutslf4j.common
Class ReflectionUtils

java.lang.Object
  extended by uk.org.lidalia.sysoutslf4j.common.ReflectionUtils

public final class ReflectionUtils
extends Object


Method Summary
static Object invokeMethod(Method method, Object target, Object... args)
           
static Object invokeMethod(String methodName, Object target)
           
static Object invokeMethod(String methodName, Object target, Class<?> argType, Object arg)
           
static Object invokeStaticMethod(String methodName, Class<?> targetClass)
           
static Object invokeStaticMethod(String methodName, Class<?> targetClass, Class<?> argType, Object arg)
           
static
<TypeInThisClassLoader>
TypeInThisClassLoader
wrap(Object target, Class<TypeInThisClassLoader> interfaceClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

invokeMethod

public static Object invokeMethod(String methodName,
                                  Object target)

invokeMethod

public static Object invokeMethod(String methodName,
                                  Object target,
                                  Class<?> argType,
                                  Object arg)

invokeStaticMethod

public static Object invokeStaticMethod(String methodName,
                                        Class<?> targetClass)

invokeStaticMethod

public static Object invokeStaticMethod(String methodName,
                                        Class<?> targetClass,
                                        Class<?> argType,
                                        Object arg)

invokeMethod

public static Object invokeMethod(Method method,
                                  Object target,
                                  Object... args)

wrap

public static <TypeInThisClassLoader> TypeInThisClassLoader wrap(Object target,
                                                                 Class<TypeInThisClassLoader> interfaceClass)


Copyright © 2010. All Rights Reserved.