Interface InstanceInstaller<T>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void install​(io.dropwizard.core.setup.Environment environment, T instance)
      Use FeatureUtils.getInstanceClass(instance) to overcome proxies and get correct type.
    • Method Detail

      • install

        void install​(io.dropwizard.core.setup.Environment environment,
                     T instance)
        Use FeatureUtils.getInstanceClass(instance) to overcome proxies and get correct type.

        Full Injector could be obtained with InjectorLookup.getInjector(Environment).

        Shared state could be obtained with SharedConfigurationState.get(Environment)

        Parameters:
        environment - environment object
        instance - extension instance