Interface IConfigurationSourceResource
- All Superinterfaces:
IConfigurationSource,IConfigurationValueProvider,IIterableConfigurationSource
- All Known Implementing Classes:
AbstractConfigurationSourceResource,ConfigurationSourceProperties
Specific configuration source based on a readable resource.
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptioncom.helger.io.resource.IReadableResourcecom.helger.base.state.ESuccessreload()Try to reload the configuration source from the configured resource.Methods inherited from interface com.helger.config.source.IConfigurationSource
getPriority, getSourceType, isInitializedAndUsableMethods inherited from interface com.helger.config.value.IConfigurationValueProvider
getConfigurationValueMethods inherited from interface com.helger.config.source.IIterableConfigurationSource
getAllConfiguredValues
-
Method Details
-
getResource
@Nonnull com.helger.io.resource.IReadableResource getResource()- Returns:
- The resource of this configuration source. Never
null.
-
reload
@Nonnull com.helger.base.state.ESuccess reload()Try to reload the configuration source from the configured resource. The reloading should be an atomic operation and be thread-safe.- Returns:
ESuccess.SUCCESSif the resource was found and loaded,ESuccess.FAILUREotherwise.- Since:
- 9.4.5
-
getAllConfigItems
@Nonnull @ReturnsMutableCopy com.helger.collection.commons.ICommonsOrderedMap<String,String> getAllConfigItems()- Specified by:
getAllConfigItemsin interfaceIIterableConfigurationSource- Returns:
- An ordered map of all contained keys and values in this resource.
The order of the items should follow the order of their declaration
in the underlying resource. Never
nullbut maybe empty. - Since:
- 9.4.3
-