Class MultiFileConfigurationBuilderProvider.ReloadableWrapperBuilder
java.lang.Object
org.apache.commons.configuration2.builder.combined.MultiFileConfigurationBuilderProvider.WrapperBuilder
org.apache.commons.configuration2.builder.combined.MultiFileConfigurationBuilderProvider.ReloadableWrapperBuilder
- All Implemented Interfaces:
ConfigurationBuilder<Configuration>,EventSource,ReloadingControllerSupport
- Enclosing class:
MultiFileConfigurationBuilderProvider
private static final class MultiFileConfigurationBuilderProvider.ReloadableWrapperBuilder
extends MultiFileConfigurationBuilderProvider.WrapperBuilder
implements ReloadingControllerSupport
A wrapper builder implementation which also provides a
ReloadingController. This class assumes that the
wrapped builder implements ReloadingControllerSupport. So the reloading controller can be obtained from this
object.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ReloadingControllerSupportThe object for obtaining the reloading controller. -
Constructor Summary
ConstructorsConstructorDescriptionReloadableWrapperBuilder(Configuration conf, ConfigurationBuilder<? extends Configuration> bldr) Creates a new instance ofReloadableWrapperBuilder. -
Method Summary
Modifier and TypeMethodDescriptionGets theReloadingControllerassociated with this object.Methods inherited from class org.apache.commons.configuration2.builder.combined.MultiFileConfigurationBuilderProvider.WrapperBuilder
addEventListener, getConfiguration, removeEventListener
-
Field Details
-
ctrlSupport
The object for obtaining the reloading controller.
-
-
Constructor Details
-
ReloadableWrapperBuilder
public ReloadableWrapperBuilder(Configuration conf, ConfigurationBuilder<? extends Configuration> bldr) Creates a new instance ofReloadableWrapperBuilder.- Parameters:
conf- the managed configurationbldr- the underlying builder (must implementReloadingControllerSupport)
-
-
Method Details
-
getReloadingController
Description copied from interface:ReloadingControllerSupportGets theReloadingControllerassociated with this object.- Specified by:
getReloadingControllerin interfaceReloadingControllerSupport- Returns:
- the associated
ReloadingController
-