Class MapperInstaller

java.lang.Object
ru.vyarus.guicey.jdbi3.installer.MapperInstaller
All Implemented Interfaces:
ru.vyarus.dropwizard.guice.module.installer.FeatureInstaller, ru.vyarus.dropwizard.guice.module.installer.install.binding.BindingInstaller

public class MapperInstaller extends Object implements ru.vyarus.dropwizard.guice.module.installer.FeatureInstaller, ru.vyarus.dropwizard.guice.module.installer.install.binding.BindingInstaller
Recognize classes implementing JDBI's RowMapper and register them. Register mappers as singletons. Reports all installed mappers to console.

Mappers are normal guice beans and so may use constructor injection, aop etc.

Since:
31.08.2018
See Also:
  • Constructor Details

    • MapperInstaller

      public MapperInstaller()
  • Method Details

    • matches

      public boolean matches(Class<?> type)
      Specified by:
      matches in interface ru.vyarus.dropwizard.guice.module.installer.FeatureInstaller
    • bind

      public void bind(com.google.inject.Binder binder, Class<?> type, boolean lazy)
      Specified by:
      bind in interface ru.vyarus.dropwizard.guice.module.installer.install.binding.BindingInstaller
    • manualBinding

      public <T> void manualBinding(com.google.inject.Binder binder, Class<T> type, com.google.inject.Binding<T> binding)
      Specified by:
      manualBinding in interface ru.vyarus.dropwizard.guice.module.installer.install.binding.BindingInstaller
    • extensionBound

      public void extensionBound(com.google.inject.Stage stage, Class<?> type)
      Specified by:
      extensionBound in interface ru.vyarus.dropwizard.guice.module.installer.install.binding.BindingInstaller
    • report

      public void report()
      Specified by:
      report in interface ru.vyarus.dropwizard.guice.module.installer.FeatureInstaller
    • getRecognizableSigns

      public List<String> getRecognizableSigns()
      Specified by:
      getRecognizableSigns in interface ru.vyarus.dropwizard.guice.module.installer.FeatureInstaller