Class ReflectionInvoker

java.lang.Object
io.smallrye.graphql.execution.datafetcher.helper.ReflectionInvoker
Direct Known Subclasses:
OperationInvoker

public class ReflectionInvoker extends Object
Invoke methods using reflection
Author:
Phillip Kruger (phillip.kruger@redhat.com)
  • Constructor Details

    • ReflectionInvoker

      public ReflectionInvoker(String className)
    • ReflectionInvoker

      public ReflectionInvoker(String className, String methodName, List<String> parameterClasses)
  • Method Details

    • getMethod

      public Method getMethod()
    • setMethod

      public void setMethod(String methodName, List<String> parameterClasses)
    • invokePrivileged

      public <T> T invokePrivileged(Object... arguments)
    • invokePrivileged

      public <T> T invokePrivileged(ClassLoader classLoader, Object... arguments)
    • invoke

      public <T> T invoke(Object... arguments) throws Exception
      Throws:
      Exception
    • toString

      public String toString()
      Overrides:
      toString in class Object