Class Reflections

java.lang.Object
ac.simons.neo4j.migrations.core.internal.Reflections

public final class Reflections extends Object
Utilities to deal with some minor reflection tasks.
Author:
Michael J. Simons
  • Method Details

    • getDefaultConstructorFor

      public static <T> Constructor<T> getDefaultConstructorFor(Class<T> c) throws NoSuchMethodException
      Helper method for retrieving the default constructor of a given class. When such a constructor exist, it will be made accessible.
      Type Parameters:
      T - The type of the class
      Parameters:
      c - The class whose constructor should be returned
      Returns:
      The default constructor
      Throws:
      NoSuchMethodException - If there is no such default constructr