T - the concrete type of Configuration objects created by this
        builderpublic class ReloadingMultiFileConfigurationBuilder<T extends FileBasedConfiguration> extends MultiFileConfigurationBuilder<T> implements ReloadingControllerSupport
 A specialized MultiFileConfigurationBuilder implementation which adds
 support for reloading.
 
 This class - as its super class - allows operating on multiple configuration
 files whose file names are determined using a file name pattern and a
 ConfigurationInterpolator object. It provides the following
 additional features:
 
ReloadingController is provided which can be used to trigger
 reload checks on all managed configurations.Although this builder manages an arbitrary number of child configurations, to clients only a single configuration is visible - the one selected by the evaluation of the file name pattern. Builder reset notifications triggered by the reloading mechanism do not really take this fact into account; they are not limited to the currently selected child configuration, but occur for each of the managed configuration.
| Constructor and Description | 
|---|
ReloadingMultiFileConfigurationBuilder(Class<T> resCls)
Creates a new instance of  
ReloadingMultiFileConfigurationBuilder
 without setting initialization parameters. | 
ReloadingMultiFileConfigurationBuilder(Class<T> resCls,
                                      Map<String,Object> params)
Creates a new instance of  
ReloadingMultiFileConfigurationBuilder
 and sets initialization parameters. | 
ReloadingMultiFileConfigurationBuilder(Class<T> resCls,
                                      Map<String,Object> params,
                                      boolean allowFailOnInit)
Creates a new instance of  
ReloadingMultiFileConfigurationBuilder
 and sets initialization parameters and a flag whether initialization
 failures should be ignored. | 
| Modifier and Type | Method and Description | 
|---|---|
protected FileBasedConfigurationBuilder<T> | 
createManagedBuilder(String fileName,
                    Map<String,Object> params)
Creates a builder for a managed configuration. 
 | 
ReloadingController | 
getReloadingController()
Returns the  
ReloadingController associated with this object. | 
addEventListener, configure, constructFileName, createInitializedManagedBuilder, createInterpolator, getConfiguration, getInterpolator, getManagedBuilder, getManagedBuilders, removeEventListener, resetParametersaddParameters, connectToReloadingController, copyEventListeners, copyEventListeners, createResult, createResultDeclaration, createResultInstance, fetchBeanHelper, fireBuilderEvent, getParameters, getResultClass, getResultDeclaration, initResultInstance, installEventListener, isAllowFailOnInit, reset, resetResult, setParameterspublic ReloadingMultiFileConfigurationBuilder(Class<T> resCls, Map<String,Object> params, boolean allowFailOnInit)
ReloadingMultiFileConfigurationBuilder
 and sets initialization parameters and a flag whether initialization
 failures should be ignored.resCls - the result configuration classparams - a map with initialization parametersallowFailOnInit - a flag whether initialization errors should be
        ignoredIllegalArgumentException - if the result class is nullpublic ReloadingMultiFileConfigurationBuilder(Class<T> resCls, Map<String,Object> params)
ReloadingMultiFileConfigurationBuilder
 and sets initialization parameters.resCls - the result configuration classparams - a map with initialization parametersIllegalArgumentException - if the result class is nullpublic ReloadingMultiFileConfigurationBuilder(Class<T> resCls)
ReloadingMultiFileConfigurationBuilder
 without setting initialization parameters.resCls - the result configuration classIllegalArgumentException - if the result class is nullpublic ReloadingController getReloadingController()
ReloadingController associated with this object. This implementation returns a special
 ReloadingController that delegates to the reloading controllers
 of the managed builders created so far.getReloadingController in interface ReloadingControllerSupportReloadingControllerprotected FileBasedConfigurationBuilder<T> createManagedBuilder(String fileName, Map<String,Object> params) throws ConfigurationException
createManagedBuilder in class MultiFileConfigurationBuilder<T extends FileBasedConfiguration>fileName - the name of the file to be loadedparams - a map with initialization parameters for the new builderConfigurationException - if an error occursCopyright © 2001–2020 The Apache Software Foundation. All rights reserved.