Class GuiceyInitializer
- java.lang.Object
-
- ru.vyarus.dropwizard.guice.module.GuiceyInitializer
-
public class GuiceyInitializer extends java.lang.ObjectGuicey initialization logic performed under dropwizard configuration phase.- Bundles lookup and initialization
- Classpath scan:
- Commands search
- Installers search
- Extensions search
- Since:
- 14.06.2019
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringAPP_PKGSpecial package name for classpath scan configuration to use application location package.
-
Constructor Summary
Constructors Constructor Description GuiceyInitializer(io.dropwizard.core.setup.Bootstrap bootstrap, ConfigurationContext context)Create initializer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfindCommands()Perform classpath scan to resolve commands.voidinitFinished()Init lifecycle end.voidinitializeBundles(GuiceyBundleLookup bundleLookup)Resolve bundles and initialize.voidresolveInstallers()Perform classpath scan to find installers.voidscanExtensions()Performs classpath scan to search for extensions.
-
-
-
Field Detail
-
APP_PKG
public static final java.lang.String APP_PKG
Special package name for classpath scan configuration to use application location package.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GuiceyInitializer
public GuiceyInitializer(io.dropwizard.core.setup.Bootstrap bootstrap, ConfigurationContext context)Create initializer.- Parameters:
bootstrap- bootstrapcontext- configuration context
-
-
Method Detail
-
initializeBundles
public void initializeBundles(GuiceyBundleLookup bundleLookup)
Resolve bundles and initialize.- Parameters:
bundleLookup- bundle lookup object
-
findCommands
public void findCommands()
Perform classpath scan to resolve commands.
-
resolveInstallers
public void resolveInstallers()
Perform classpath scan to find installers. Create enabled installer instances.
-
scanExtensions
public void scanExtensions()
Performs classpath scan to search for extensions. No registration performed because manual extensions could be added in run phase (and it is important to register manual extension first).
-
initFinished
public void initFinished()
Init lifecycle end. Flush classpath scan cache.
-
-