public abstract class AbstractResourceConfigurationBuilder extends AbstractConfigurationBuilder
ConfigurationBuilder
implementation used for
ConfigurationBuider's that use one of more configuration resources of the same
type that are defined using strings or ConfigResource
objects. It is recommended that
ConfigResource
objects are used over strings since they can be more descriptive, but
Strings will be supported for quite some time.Modifier and Type | Field and Description |
---|---|
protected ConfigResource[] |
configResources |
configured, logger
Constructor and Description |
---|
AbstractResourceConfigurationBuilder(ConfigResource[] configResources) |
AbstractResourceConfigurationBuilder(String configResources) |
AbstractResourceConfigurationBuilder(String[] configResources) |
Modifier and Type | Method and Description |
---|---|
void |
configure(MuleContext muleContext)
Override to check for existence of configResouce before invocation, and set
resources n configuration afterwards.
|
protected String |
createConfigResourcesString() |
protected ConfigResource[] |
loadConfigResources(String[] configs) |
applyLifecycle, doConfigure, isConfigured
protected ConfigResource[] configResources
public AbstractResourceConfigurationBuilder(String configResources) throws ConfigurationException
configResources
- a comma separated list of configuration files to load,
this should be accessible on the classpath or filesystemConfigurationException
- usually if the config resources cannot be loadedpublic AbstractResourceConfigurationBuilder(String[] configResources) throws ConfigurationException
configResources
- an array of configuration files to load, this should be
accessible on the classpath or filesystemConfigurationException
- usually if the config resources cannot be loadedpublic AbstractResourceConfigurationBuilder(ConfigResource[] configResources)
configResources
- an array Reader oject that provides acces to a configuration either locally or remotelypublic void configure(MuleContext muleContext) throws ConfigurationException
configure
in interface ConfigurationBuilder
configure
in class AbstractConfigurationBuilder
muleContext
- The current MuleContext
ConfigurationException
- if the configuration fails i.e. an object cannot be created or
initialised properlyprotected ConfigResource[] loadConfigResources(String[] configs) throws ConfigurationException
ConfigurationException
protected String createConfigResourcesString()
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.