Class Reflections
java.lang.Object
ac.simons.neo4j.migrations.core.internal.Reflections
Utilities to deal with some minor reflection tasks.
- Author:
- Michael J. Simons
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Constructor<T>
Helper method for retrieving the default constructor of a given class.
-
Method Details
-
getDefaultConstructorFor
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
-