public class ServiceLoaderBundleLookup extends java.lang.Object implements GuiceyBundleLookup
ServiceLoader
by GuiceyBundle
. Intended to be used for automatic
installation of third party extensions.
Extension jar must contain file:
META-INF/services/ru.vyarus.dropwizard.guice.module.installer.bundle.GuiceyBundle
.
File must contain one or more implementation classes (per line): com.foo.MyGuiceyBundle
.
Each bundle must have default no-args constructor.
Constructor and Description |
---|
ServiceLoaderBundleLookup() |
Modifier and Type | Method and Description |
---|---|
java.util.List<GuiceyBundle> |
lookup()
Called before guice injector creation to lookup additional bundles (in dropwizard run phase).
|
public java.util.List<GuiceyBundle> lookup()
GuiceyBundleLookup
lookup
in interface GuiceyBundleLookup