...
Core Services
Configuration Service
...
Functionality
...
ConfigurationService
Legacy
...
Configuration
...
Wiki Markup
...
_\[dspace\
...
]/config/dspace.cfg{_}
ConfigurationService contributed to DSpace 1.7.1 (Service Manager Version 2.0.3)
...
support for reading the same "dspace.cfg" legacy file is supported. Example of Usage:
...
ConfigurationService
...
cs
...
=
...
new
...
DSpace().getConfigurationService();
...
String
...
prop
...
=
...
cs.getProperty("property");
Legacy Support Example of Usage:
Code Block |
---|
String prop = ConfigurationManager.getProperty("property"); |
Default Configuration
...
Wiki Markup |
---|
...
_\[addon.jar\]/config/\[service\].cfg_
\\ |
Any
...
service can provide sane defaults in a java properties configuration file. These properties will be able to be looked up directly using a prefix as syntax.
...
Example of Usage:
Code Block |
---|
ConfigurationService cs = new DSpace().getConfigurationService();
String prop = cs.getProperty("prefix.property |
...
N/A
...
]]></ac:plain-text-body></ac:structured-macro>
...
");
|
N/A
Modularization of Configuration
Wiki Markup |
---|
_\[dspace\ |
...
]/config/module/\[prefix\].cfg_ |
...
Any service can provide overrides in the DSpace home configuration directory sane defaults in a java properties configuration file. These properties will be able to be looked up directly using a prefix as syntax.
...
...
Example of Usage:
Code Block |
---|
ConfigurationService cs = new DSpace().getConfigurationService();
String prop = cs.getProperty("prefix.property"); |
In DSpace 1.7.0 enhanced capabilities were added to the ConfigurationManager to support the separation of of properties into individual files. The name of these files is utilized as a "prefix" to isolate properties that are defined across separate files from colliding.
Example of Usage:
Code Block |
---|
String prop = ConfigurationManager.getProperty("prefix", "property"); |
...
...
...
...
...
...
Mirrors DSpace Configuration
dspace/config/dspace.cfg
dspace/config/modules/addon.cfg
Defaults supported in Addon Jars.
addon.jar/spring/
...