public class ClassLoaderRegistryBootstrapDiscoverer extends Object implements RegistryBootstrapDiscoverer
Looks for bootstrap properties in resources named {code BOOTSTRAP_PROPERTIES} inside a given classloader.
All found properties resources are collected and loaded during the discovery process. Properties are returned in the same order
they were found in the classloader. If while loading some properties resource an exception occurs the whole process is
interrupted and a BootstrapException exception is raised.
| Modifier and Type | Field and Description |
|---|---|
static String |
BOOTSTRAP_PROPERTIES |
| Constructor and Description |
|---|
ClassLoaderRegistryBootstrapDiscoverer(ClassLoader classLoader)
Creates a new discoverer for a given classloader.
|
| Modifier and Type | Method and Description |
|---|---|
List<Properties> |
discover()
Collects the Properties to be used in an ordered way.
|
public static final String BOOTSTRAP_PROPERTIES
public ClassLoaderRegistryBootstrapDiscoverer(ClassLoader classLoader)
classLoader - classloader used to discover {code BOOTSTRAP_PROPERTIES} files. Non null.public List<Properties> discover() throws BootstrapException
discover in interface RegistryBootstrapDiscovererBootstrapException - if a problem occurs during the discovery process.Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.