public interface Bundlers
Modifier and Type | Method and Description |
---|---|
static Bundlers |
createBundlersInstance()
This convenience method will call
createBundlersInstance(ClassLoader)
with the classloader that this Bundlers is loaded from. |
static Bundlers |
createBundlersInstance(ClassLoader servicesClassLoader)
This convenience method will automatically load a Bundlers instance
from either META-INF/services or the default
BasicBundlers if none are found in
the services meta-inf. |
Collection<Bundler> |
getBundlers()
Returns all of the preconfigured, requested, and manually
configured bundlers loaded with this instance.
|
Collection<Bundler> |
getBundlers(String type)
Returns all of the preconfigured, requested, and manually
configured bundlers loaded with this instance that are of
a specific BundleType, such as disk images, installers, or
remote installers.
|
Collection<BundlerParamInfo> |
getStandardParameters()
A list of the "standard" parameters that bundlers should support
or fall back to when their specific parameters are not used.
|
void |
loadBundler(Bundler bundler)
Loads a specific bundler into the set of bundlers.
|
void |
loadBundlersFromServices(ClassLoader cl)
Loads bundlers from the META-INF/services directly.
|
void |
loadDefaultBundlers()
Loads the bundlers common to the JDK.
|
static Bundlers createBundlersInstance()
createBundlersInstance(ClassLoader)
with the classloader that this Bundlers is loaded from.static Bundlers createBundlersInstance(ClassLoader servicesClassLoader)
BasicBundlers
if none are found in
the services meta-inf.
After instantiating the bundlers instance it will load the default
bundlers via loadDefaultBundlers()
as well as requesting
the services loader to load any other bundelrs via
loadBundlersFromServices(ClassLoader)
.servicesClassLoader
- the classloader to search for
META-INF/service registered bundlersCollection<Bundler> getBundlers()
Collection<Bundler> getBundlers(String type)
Collection<BundlerParamInfo> getStandardParameters()
void loadDefaultBundlers()
createBundlersInstance(ClassLoader)
and createBundlersInstance()
methods.void loadBundlersFromServices(ClassLoader cl)
createBundlersInstance(ClassLoader)
and createBundlersInstance()
methods.void loadBundler(Bundler bundler)
bundler
- the specific bundler to addCopyright © 2020. All rights reserved.