Class DefaultConstructor<T>
java.lang.Object
org.apache.cayenne.reflect.DefaultConstructor<T>
A cached handle to the no-arg constructor of a class. Resolving a constructor via
Class.getDeclaredConstructor(Class[]) is comparatively expensive (a lookup, a defensive copy and an access
check), so callers that instantiate the same class repeatedly should resolve it once and keep this object around.- Since:
- 5.0
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DefaultConstructor
-
-
Method Details
-
getType
-
newInstance
-