Class Reflection

java.lang.Object
org.glowroot.agent.plugin.api.util.Reflection

public class Reflection extends Object
  • Method Details

    • getClass

      public static Class<?> getClass(String name, ClassLoader loader)
    • getClassWithWarnIfNotFound

      public static Class<?> getClassWithWarnIfNotFound(String name, ClassLoader loader)
    • getMethod

      public static Method getMethod(Class<?> clazz, String methodName, Class<?>... parameterTypes)
    • getDeclaredField

      public static Field getDeclaredField(Class<?> clazz, String fieldName)
    • invoke

      public static <T> T invoke(Method method, Object obj, Object... args)
    • invokeWithDefault

      public static <T> T invokeWithDefault(Method method, Object obj, T defaultValue, Object... args)
    • getFieldValue

      public static Object getFieldValue(Field field, Object obj)