Package org.jdbi.v3.core.mapper.reflect
Class JdbiConstructors
java.lang.Object
org.jdbi.v3.core.mapper.reflect.JdbiConstructors
Utilities for
JdbiConstructor
annotation.-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Constructor
<T> findConstructorFor
(Class<T> type) Find an invokable constructor.
-
Method Details
-
findConstructorFor
Find an invokable constructor. Prefer anJdbiConstructor
annotated one if present. Throws if multiple or zero candidates are found.- Type Parameters:
T
- the type to inspect- Parameters:
type
- the type to inspect- Returns:
- the preferred constructor
-