Package uk.ac.diamond.daq.configuration
Class CompositeBeamlineConfiguration
java.lang.Object
uk.ac.diamond.daq.configuration.CompositeBeamlineConfiguration
- All Implemented Interfaces:
BeamlineConfiguration
-
Constructor Summary
ConstructorsConstructorDescriptionCompositeBeamlineConfiguration(Path root, Stream<ConfigurationSource> sources, List<CoreConfigurationSource> coreSources) -
Method Summary
Modifier and TypeMethodDescriptionThe properties made available directly rather than loaded via filesGet all files that should be loaded to configure the logging frameworkGet all the profiles that should be used when loading the SpringContextGet all the properties files from which LocalProperties should be loadedGet all the xml files that should be used to build the server SpringContextvoidDebugging utility to print out full config including what each source contributes and the combined + interpolated results.org.apache.commons.configuration2.Configurationproperties(Predicate<String> keyFilter) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface uk.ac.diamond.daq.configuration.BeamlineConfiguration
asPropertiesConfig
-
Constructor Details
-
CompositeBeamlineConfiguration
public CompositeBeamlineConfiguration(Path root, Stream<ConfigurationSource> sources, List<CoreConfigurationSource> coreSources)
-
-
Method Details
-
getSpringXml
Get all the xml files that should be used to build the server SpringContext- Specified by:
getSpringXmlin interfaceBeamlineConfiguration
-
getPropertiesFiles
Get all the properties files from which LocalProperties should be loaded- Specified by:
getPropertiesFilesin interfaceBeamlineConfiguration
-
getLoggingConfiguration
Get all files that should be loaded to configure the logging framework- Specified by:
getLoggingConfigurationin interfaceBeamlineConfiguration
-
getProfiles
Get all the profiles that should be used when loading the SpringContext- Specified by:
getProfilesin interfaceBeamlineConfiguration
-
properties
public org.apache.commons.configuration2.Configuration properties()- Specified by:
propertiesin interfaceBeamlineConfiguration
-
properties
- Specified by:
propertiesin interfaceBeamlineConfiguration
-
toString
-
directProperties
Description copied from interface:BeamlineConfigurationThe properties made available directly rather than loaded via files- Specified by:
directPropertiesin interfaceBeamlineConfiguration
-
systemProperties
-
printFullDebugDetails
public void printFullDebugDetails()Debugging utility to print out full config including what each source contributes and the combined + interpolated results. Individual properties loaded from files are not included as they are more likely to include sensitive values.
-