Class ServiceLoaderBundleLookup
java.lang.Object
ru.vyarus.dropwizard.guice.bundle.lookup.ServiceLoaderBundleLookup
- All Implemented Interfaces:
GuiceyBundleLookup
Load bundles using
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.
- Since:
- 18.01.2016
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlookup()Called before guice injector creation to lookup additional bundles (in dropwizard run phase).
-
Constructor Details
-
ServiceLoaderBundleLookup
public ServiceLoaderBundleLookup()
-
-
Method Details
-
lookup
Description copied from interface:GuiceyBundleLookupCalled before guice injector creation to lookup additional bundles (in dropwizard run phase).- Specified by:
lookupin interfaceGuiceyBundleLookup- Returns:
- list of found bundles or empty list
-