java.lang.Object
ru.vyarus.dropwizard.guice.module.installer.bundle.GuiceyBootstrap
All Implemented Interfaces:
GuiceyCommonRegistration<GuiceyBootstrap>

public class GuiceyBootstrap extends Object implements GuiceyCommonRegistration<GuiceyBootstrap>
Guicey initialization object. Provides almost the same configuration methods as GuiceBundle.Builder. Also, contains dropwizard bootstrap objects. May register pure dropwizard bundles.

In contrast to main builder, guicey bundle can't:

  • Disable bundles (because at this stage bundles already partly processed)
  • Use generic disable predicates (to not allow bundles disable, moreover it's tests-oriented feature)
  • Change options (because some bundles may already apply configuration based on changed option value which will mean inconsistent state)
  • Register listener, implementing GuiceyConfigurationHook (because it's too late - all hooks were processed)
  • Register some special objects like custom injector factory or custom bundles lookup
Since:
01.08.2015