Class GuiceyInitializer
java.lang.Object
ru.vyarus.dropwizard.guice.module.GuiceyInitializer
Guicey 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 -
Constructor Summary
ConstructorsConstructorDescriptionGuiceyInitializer(io.dropwizard.core.setup.Bootstrap bootstrap, ConfigurationContext context) Create initializer. -
Method Summary
Modifier and TypeMethodDescriptionvoidPerform classpath scan to resolve commands.voidInit lifecycle end.voidinitializeBundles(GuiceyBundleLookup bundleLookup) Resolve bundles and initialize.voidPerform classpath scan to find installers.voidPerforms classpath scan to search for extensions.
-
Field Details
-
APP_PKG
Special package name for classpath scan configuration to use application location package.- See Also:
-
-
Constructor Details
-
GuiceyInitializer
public GuiceyInitializer(io.dropwizard.core.setup.Bootstrap bootstrap, ConfigurationContext context) Create initializer.- Parameters:
bootstrap- bootstrapcontext- configuration context
-
-
Method Details
-
initializeBundles
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.
-