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 aReloadingController
. This class assumes that the wrapped builder implementsReloadingControllerSupport
. So the reloading controller can be obtained from this object.
-
-
Field Summary
Fields Modifier and Type Field Description private ReloadingControllerSupport
ctrlSupport
The object for obtaining the reloading controller.
-
Constructor Summary
Constructors Constructor Description ReloadableWrapperBuilder(Configuration conf, ConfigurationBuilder<? extends Configuration> bldr)
Creates a new instance ofReloadableWrapperBuilder
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReloadingController
getReloadingController()
Gets theReloadingController
associated with this object.-
Methods inherited from class org.apache.commons.configuration2.builder.combined.MultiFileConfigurationBuilderProvider.WrapperBuilder
addEventListener, getConfiguration, removeEventListener
-
-
-
-
Field Detail
-
ctrlSupport
private final ReloadingControllerSupport ctrlSupport
The object for obtaining the reloading controller.
-
-
Constructor Detail
-
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 Detail
-
getReloadingController
public ReloadingController getReloadingController()
Description copied from interface:ReloadingControllerSupport
Gets theReloadingController
associated with this object.- Specified by:
getReloadingController
in interfaceReloadingControllerSupport
- Returns:
- the associated
ReloadingController
-
-