Class CoreInstallersBundle
- java.lang.Object
-
- ru.vyarus.dropwizard.guice.module.context.unique.item.UniqueGuiceyBundle
-
- ru.vyarus.dropwizard.guice.module.installer.CoreInstallersBundle
-
- All Implemented Interfaces:
GuiceyBundle
public class CoreInstallersBundle extends UniqueGuiceyBundle
Core installers bundle. InstallsWebInstallersBundle.- Since:
- 02.08.2015
-
-
Constructor Summary
Constructors Constructor Description CoreInstallersBundle()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitialize(GuiceyBootstrap bootstrap)Called in initialization phase.-
Methods inherited from class ru.vyarus.dropwizard.guice.module.context.unique.item.UniqueGuiceyBundle
equals, hashCode
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ru.vyarus.dropwizard.guice.module.installer.bundle.GuiceyBundle
run
-
-
-
-
Method Detail
-
initialize
public void initialize(GuiceyBootstrap bootstrap)
Description copied from interface:GuiceyBundleCalled in initialization phase.GuiceyBootstrapcontains almost the same methods asGuiceBundle.Builder, which allows to register installers, extensions and guice modules. Existing installer could be replaced by disabling old one and registering new.Dropwizard bundles could be also registered with
GuiceyBootstrap.dropwizardBundles(io.dropwizard.core.ConfiguredBundle[])shortcut (or by directly accessing dropwizard bootstrap object:GuiceyBootstrap.bootstrap().As bundles could be registered only during initialization phase, it is not possible to avoid bundle registration based on configuration (not a good practice). But, it is possible to use guicey options instead: for example, map option from environment variable and use to to decide if some bundles should be activated.
Guicey lifecycle listeners (
GuiceyLifecycleListenercould be registered only on initialization phase (GuiceyBootstrap.listen(ru.vyarus.dropwizard.guice.module.lifecycle.GuiceyLifecycleListener...)).- Parameters:
bootstrap- guicey bootstrap object
-
-