| java.lang.Object org.apache.cocoon.util.PropertySettings
PropertySettings | public class PropertySettings implements Settings(Code) | | This object holds the property settings for Cocoon. This interface is loosely based on the Settings interface
introduced in 2.2 but is note equivalent to it as it is only meant to hold configuration properties.
version: $Id: PropertySettings.java 433543 2006-08-22 06:22:54Z crossley $ |
Constructor Summary | |
public | PropertySettings(SourceResolver resolver, Logger logger) Initialize the settings for Cocoon.
This method reads several property files and merges the result. |
CONTEXT_PARAMETERS | final protected static Map CONTEXT_PARAMETERS(Code) | | Parameter map for the context protocol
|
PropertySettings | public PropertySettings(SourceResolver resolver, Logger logger)(Code) | | Initialize the settings for Cocoon.
This method reads several property files and merges the result. If there
is more than one definition for a property, the last one wins.
The property files are read in the following order:
1) context://WEB-INF/properties/*.properties
Default values for the core and each block - the order in which the files are read is not guaranteed.
2) context://WEB-INF/properties/[RUNNING_MODE]/*.properties
Default values for the running mode - the order in which the files are read is not guaranteed.
3) Property providers (ToBeDocumented)
4) The environment (CLI, Servlet etc.) adds own properties (e.g. from web.xml)
5) Additional property file specified by the "org.apache.cocoon.settings" system property or
if the property is not found, the file ".cocoon/settings.properties" is tried to be read from
the user directory.
6) System properties
|
|
|