Class UseTemplateEngineImpl
- java.lang.Object
-
- org.jdbi.v3.sqlobject.config.internal.UseTemplateEngineImpl
-
- All Implemented Interfaces:
ExtensionConfigurer
public class UseTemplateEngineImpl extends java.lang.Object implements ExtensionConfigurer
-
-
Constructor Summary
Constructors Constructor Description UseTemplateEngineImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigureForMethod(ConfigRegistry config, java.lang.annotation.Annotation annotation, java.lang.Class<?> sqlObjectType, java.lang.reflect.Method method)Configures the config for the given annotation on a extension type method.voidconfigureForType(ConfigRegistry config, java.lang.annotation.Annotation annotation, java.lang.Class<?> sqlObjectType)Updates configuration for the given annotation on an extension type.private static TemplateEngineinstantiate(java.lang.Class<? extends TemplateEngine> engineClass, java.lang.Class<?> sqlObjectType, java.lang.reflect.Method method)private static <T extends TemplateEngine>
java.util.function.Supplier<T>tryConstructor(java.lang.Class<T> clazz, java.lang.Object... args)
-
-
-
Method Detail
-
configureForMethod
public void configureForMethod(ConfigRegistry config, java.lang.annotation.Annotation annotation, java.lang.Class<?> sqlObjectType, @Nullable java.lang.reflect.Method method)
Description copied from interface:ExtensionConfigurerConfigures the config for the given annotation on a extension type method.- Specified by:
configureForMethodin interfaceExtensionConfigurer- Parameters:
config- the config to configureannotation- the annotationsqlObjectType- the extension typemethod- the method which was annotated
-
configureForType
public void configureForType(ConfigRegistry config, java.lang.annotation.Annotation annotation, java.lang.Class<?> sqlObjectType)
Description copied from interface:ExtensionConfigurerUpdates configuration for the given annotation on an extension type.- Specified by:
configureForTypein interfaceExtensionConfigurer- Parameters:
config- the config to configureannotation- the annotationsqlObjectType- the extension type which was annotated
-
instantiate
private static TemplateEngine instantiate(java.lang.Class<? extends TemplateEngine> engineClass, java.lang.Class<?> sqlObjectType, @Nullable java.lang.reflect.Method method)
-
tryConstructor
private static <T extends TemplateEngine> java.util.function.Supplier<T> tryConstructor(java.lang.Class<T> clazz, java.lang.Object... args)
-
-