Class ReflectionUtils

java.lang.Object
io.streamnative.kafka.client.api.ReflectionUtils

public class ReflectionUtils extends Object
Utils methods for reflection.
  • Constructor Details

    • ReflectionUtils

      public ReflectionUtils()
  • Method Details

    • invoke

      public static <T> Object invoke(Class<T> clazz, String name, Object object)
      Invoke a method of an object but throw an unchecked exception.
      Type Parameters:
      T - the type of `object`
      Parameters:
      clazz - the class type of `object`
      name - the method name
      object - the object to call the method
      Returns:
      the returned value of the method