public class DefaultBundleLookup extends java.lang.Object implements GuiceyBundleLookup
By default includes:
PropertyBundleLookup
to use system propertyServiceLoaderBundleLookup
to load bundles using ServiceLoader
by
GuiceyBundle
Additional lookups could be added using addLookup(GuiceyBundleLookup)
method.
Default lookup implementation could be customized by calling constructor with custom loaders list.
Constructor and Description |
---|
DefaultBundleLookup()
Use predefined lookups.
|
DefaultBundleLookup(GuiceyBundleLookup... lookups) |
Modifier and Type | Method and Description |
---|---|
DefaultBundleLookup |
addLookup(GuiceyBundleLookup lookup)
Add additional lookup mechanism.
|
java.util.List<GuiceyBundle> |
lookup()
Called before guice injector creation to lookup additional bundles (in dropwizard run phase).
|
public DefaultBundleLookup()
public DefaultBundleLookup(GuiceyBundleLookup... lookups)
lookups
- lookups to use instead of defaultspublic java.util.List<GuiceyBundle> lookup()
GuiceyBundleLookup
lookup
in interface GuiceyBundleLookup
public DefaultBundleLookup addLookup(GuiceyBundleLookup lookup)
lookup
- lookup implementation