Class ServerSpringProperties

java.lang.Object
uk.ac.gda.core.tool.spring.ServerSpringProperties

@Configuration @PropertySource("file:${gda.config}/properties/_common/common_instance_java.properties") @PropertySource(value="file:${gda.config}/properties/${gda.mode}/${gda.mode}_instance_java.properties",ignoreResourceNotFound=true) @ConfigurationProperties(prefix="server") @EnableConfigurationProperties({AcquisitionFileContextProperties.class,ProcessingRequestProperties.class}) public class ServerSpringProperties extends Object
Loads the server-side properties using spring.

Note that only the properties starting with the prefix followed by a ServerSpringProperties.propertyName are parsed. For example:

 server.fileContexts.diffraction.directory = diffraction
 server.fileContexts.diffraction.configurations = configurations
 server.fileContexts.diffraction.calibrations = calibrations

 server.fileContexts.imaging.directory = tomography
 server.fileContexts.imaging.configurations = diffraction
 server.fileContexts.imaging.savu = calibrations

 server.fileContexts.experiment.directory = experiments
 server.fileContexts.experiment.processed = calibrations