Package org.jdbi.v3.core.mapper.reflect
Class JdbiConstructors
java.lang.Object
org.jdbi.v3.core.mapper.reflect.JdbiConstructors
Utilities for
JdbiConstructor annotation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Constructor<T>findConstructorFor(Class<T> type) Find an invokable constructor.(package private) static <T> InstanceFactory<T>findFactoryFor(Class<T> type) Find an invokable instance factory, such as a constructor or a static factory method.private static <T> Constructor<T>findImplicitConstructorFor(Class<T> type)
-
Constructor Details
-
JdbiConstructors
private JdbiConstructors()
-
-
Method Details
-
findFactoryFor
Find an invokable instance factory, such as a constructor or a static factory method. Prefer anJdbiConstructorannotated constructor or static factory method if one is 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 or static factory method
-
findConstructorFor
Find an invokable constructor. Prefer anJdbiConstructorannotated 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
-
findImplicitConstructorFor
-