Package org.jdbi.v3.core.mapper.reflect
Class StaticMethodInstanceFactory<T>
- java.lang.Object
-
- org.jdbi.v3.core.mapper.reflect.InstanceFactory<T>
-
- org.jdbi.v3.core.mapper.reflect.StaticMethodInstanceFactory<T>
-
class StaticMethodInstanceFactory<T> extends InstanceFactory<T>
-
-
Constructor Summary
Constructors Constructor Description StaticMethodInstanceFactory(java.lang.Class<T> type, java.lang.reflect.Method method)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static booleanisStaticFactoryMethodFor(java.lang.reflect.Method method, java.lang.Class<?> type)(package private) TnewInstance(java.lang.Object... params)java.lang.StringtoString()-
Methods inherited from class org.jdbi.v3.core.mapper.reflect.InstanceFactory
getAnnotation, getAnnotationIncludingType, getDeclaringClass, getParameterCount, getParameters
-
-
-
-
Field Detail
-
type
private final java.lang.Class<T> type
-
method
private final java.util.function.Function<java.lang.Object[],java.lang.Object> method
-
-
Constructor Detail
-
StaticMethodInstanceFactory
StaticMethodInstanceFactory(java.lang.Class<T> type, java.lang.reflect.Method method)
-
-
Method Detail
-
isStaticFactoryMethodFor
private static boolean isStaticFactoryMethodFor(java.lang.reflect.Method method, java.lang.Class<?> type)
-
newInstance
T newInstance(java.lang.Object... params)
- Specified by:
newInstancein classInstanceFactory<T>
-
toString
public java.lang.String toString()
- Specified by:
toStringin classInstanceFactory<T>
-
-