public final class BundleSupport
extends java.lang.Object
Bundle and ConfiguredBundle
objects within dropwizard Bootstrap object.| Modifier and Type | Method and Description |
|---|---|
static <T> java.util.List<T> |
findBundles(io.dropwizard.setup.Bootstrap bootstrap,
java.lang.Class<T> type) |
static <T> java.util.List<T> |
removeDuplicates(java.util.List<T> list)
Remove duplicates in list by rule: only one instance of type must be present in list.
|
public static <T> java.util.List<T> removeDuplicates(java.util.List<T> list)
T - required bundle typelist - bundles listpublic static <T> java.util.List<T> findBundles(io.dropwizard.setup.Bootstrap bootstrap,
java.lang.Class<T> type)
T - required bundle typebootstrap - dropwizard bootstrap instancetype - required bundle type (or marker interface)