Class SimpleExtensionConfigurer

java.lang.Object
org.jdbi.v3.core.extension.SimpleExtensionConfigurer
All Implemented Interfaces:
ExtensionConfigurer

@Alpha public abstract class SimpleExtensionConfigurer extends Object implements ExtensionConfigurer
Configurer base class that applies the same configuration changes independent whether an annotation is placed on the type or a method.
  • Constructor Details

    • SimpleExtensionConfigurer

      public SimpleExtensionConfigurer()
  • Method Details

    • configureForType

      public final void configureForType(ConfigRegistry config, Annotation annotation, Class<?> extensionType)
      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
      extensionType - the extension type which was annotated
    • configureForMethod

      public final void configureForMethod(ConfigRegistry config, Annotation annotation, Class<?> extensionType, 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
      extensionType - the extension type
      method - the method which was annotated
    • configure

      public abstract void configure(ConfigRegistry config, Annotation annotation, Class<?> extensionType)
      Updates configuration for the given annotation on an extension type.
      Parameters:
      config - The ConfigRegistry object to configure
      annotation - The annotation that invoked this method
      extensionType - the extension type which was annotated