Class UseTemplateEngineImpl
java.lang.Object
org.jdbi.v3.sqlobject.config.internal.UseTemplateEngineImpl
- All Implemented Interfaces:
ExtensionConfigurer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigureForMethod(ConfigRegistry config, Annotation annotation, Class<?> sqlObjectType, Method method) Configures the config for the given annotation on a extension type method.voidconfigureForType(ConfigRegistry config, Annotation annotation, Class<?> sqlObjectType) Updates configuration for the given annotation on an extension type.private static TemplateEngineinstantiate(Class<? extends TemplateEngine> engineClass, Class<?> sqlObjectType, Method method) private static <T extends TemplateEngine>
Supplier<T>tryConstructor(Class<T> clazz, Object... args)
-
Constructor Details
-
UseTemplateEngineImpl
public UseTemplateEngineImpl()
-
-
Method Details
-
configureForMethod
public void configureForMethod(ConfigRegistry config, Annotation annotation, Class<?> sqlObjectType, @Nullable 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
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(Class<? extends TemplateEngine> engineClass, Class<?> sqlObjectType, @Nullable Method method) -
tryConstructor
private static <T extends TemplateEngine> Supplier<T> tryConstructor(Class<T> clazz, Object... args)
-