Class UseTemplateEngineImpl

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void configureForMethod​(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.
      void configureForType​(ConfigRegistry config, java.lang.annotation.Annotation annotation, java.lang.Class<?> sqlObjectType)
      Updates configuration for the given annotation on an extension type.
      private static TemplateEngine instantiate​(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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UseTemplateEngineImpl

        public UseTemplateEngineImpl()
    • 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: ExtensionConfigurer
        Configures the config for the given annotation on a extension type method.
        Specified by:
        configureForMethod in interface ExtensionConfigurer
        Parameters:
        config - the config to configure
        annotation - the annotation
        sqlObjectType - the extension type
        method - the method which was annotated
      • configureForType

        public void configureForType​(ConfigRegistry config,
                                     java.lang.annotation.Annotation annotation,
                                     java.lang.Class<?> sqlObjectType)
        Description copied from interface: ExtensionConfigurer
        Updates configuration for the given annotation on an extension type.
        Specified by:
        configureForType in interface ExtensionConfigurer
        Parameters:
        config - the config to configure
        annotation - the annotation
        sqlObjectType - 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)