org.mule.config.bootstrap
Class ClassPathRegistryBootstrapDiscoverer

java.lang.Object
  extended by org.mule.config.bootstrap.ClassPathRegistryBootstrapDiscoverer
All Implemented Interfaces:
RegistryBootstrapDiscoverer

public class ClassPathRegistryBootstrapDiscoverer
extends Object
implements RegistryBootstrapDiscoverer

Looks for bootstrap properties in resources named META-INF/services/org/mule/config/registry-bootstrap.properties inside the classpath.

All found properties resources are collected and loaded during the discovery process. Properties are returned in the same order they were found in the classpath. If while loading some properties resource an exception occurs the whole process is interrupted and a BootstrapException exception is raised.


Constructor Summary
ClassPathRegistryBootstrapDiscoverer()
           
 
Method Summary
 List<Properties> discover()
          Collects the Properties to be used in an ordered way.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassPathRegistryBootstrapDiscoverer

public ClassPathRegistryBootstrapDiscoverer()
Method Detail

discover

public List<Properties> discover()
                          throws BootstrapException
Collects the Properties to be used in an ordered way.

Specified by:
discover in interface RegistryBootstrapDiscoverer
Returns:
A list of Properties containing the key/value pairs to be used in the bootstrap configuration process.
Throws:
BootstrapException - if a problem occurs during the discovery process.


Copyright © 2003–2014 MuleSoft, Inc.. All rights reserved.