Package mondrian.olap
Class MondrianPropertiesBase
- java.lang.Object
-
- java.util.Dictionary<K,V>
-
- java.util.Hashtable<java.lang.Object,java.lang.Object>
-
- java.util.Properties
-
- org.eigenbase.util.property.TriggerableProperties
-
- mondrian.olap.MondrianPropertiesBase
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.util.Map<java.lang.Object,java.lang.Object>
- Direct Known Subclasses:
MondrianProperties
public abstract class MondrianPropertiesBase extends org.eigenbase.util.property.TriggerableProperties
MondrianProperties
contains the properties which determine the behavior of a mondrian instance.There is a method for property valid in a
mondrian.properties
file. Although it is possible to retrieve properties using the inheritedProperties.getProperty(String)
method, we recommend that you use methods in this class.Note to developers
If you add a property, you must:- Add a property definition to MondrianProperties.xml.
- Re-generate MondrianProperties.java using PropertyUtil.
- Modify the default
mondrian.properties
file checked into source control, with a description of the property and its default value. - Modify the Configuration Specification.
Similarly if you update or delete a property.
- Since:
- 22 December, 2002
- Author:
- jhyde
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
MondrianPropertiesBase.FilePropertySource
Implementation ofMondrianPropertiesBase.PropertySource
which reads from aFile
.static interface
MondrianPropertiesBase.PropertySource
Represents a place that properties can be read from, and remembers the timestamp that we last read them.(package private) static class
MondrianPropertiesBase.UrlPropertySource
Implementation ofMondrianPropertiesBase.PropertySource
which reads from aURL
.
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
mondrianDotProperties
-
Constructor Summary
Constructors Modifier Constructor Description protected
MondrianPropertiesBase(MondrianPropertiesBase.PropertySource propertySource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
populate()
Loads this property set from: the file "$PWD/mondrian.properties" (if it exists); the "mondrian.properties" in the CLASSPATH; and from the system properties.boolean
triggersAreEnabled()
-
Methods inherited from class org.eigenbase.util.property.TriggerableProperties
getProperties, getPropertyDefinition, getPropertyList, register, setProperty
-
Methods inherited from class java.util.Properties
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, getProperty, getProperty, hashCode, isEmpty, keys, keySet, list, list, load, load, loadFromXML, merge, propertyNames, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, save, size, store, store, storeToXML, storeToXML, storeToXML, stringPropertyNames, toString, values
-
-
-
-
Field Detail
-
mondrianDotProperties
protected static final java.lang.String mondrianDotProperties
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MondrianPropertiesBase
protected MondrianPropertiesBase(MondrianPropertiesBase.PropertySource propertySource)
-
-
Method Detail
-
triggersAreEnabled
public boolean triggersAreEnabled()
- Overrides:
triggersAreEnabled
in classorg.eigenbase.util.property.TriggerableProperties
-
populate
public void populate()
Loads this property set from: the file "$PWD/mondrian.properties" (if it exists); the "mondrian.properties" in the CLASSPATH; and from the system properties.
-
-