mondrian.olap
Class MondrianPropertiesBase

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable<Object,Object>
          extended by java.util.Properties
              extended by org.eigenbase.util.property.TriggerableProperties
                  extended by mondrian.olap.MondrianPropertiesBase
All Implemented Interfaces:
Serializable, Cloneable, Map<Object,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 inherited Properties.getProperty(String) method, we recommend that you use methods in this class.

Note to developers

If you add a property, you must:

Similarly if you update or delete a property.

Since:
22 December, 2002
Author:
jhyde
See Also:
Serialized Form

Nested Class Summary
(package private) static class MondrianPropertiesBase.FilePropertySource
          Implementation of MondrianPropertiesBase.PropertySource which reads from a File.
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 of MondrianPropertiesBase.PropertySource which reads from a URL.
 
Field Summary
protected static String mondrianDotProperties
           
 
Fields inherited from class org.eigenbase.util.property.TriggerableProperties
properties, triggers
 
Fields inherited from class java.util.Properties
defaults
 
Constructor Summary
protected MondrianPropertiesBase(MondrianPropertiesBase.PropertySource propertySource)
           
 
Method Summary
 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
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, store, store, storeToXML, storeToXML, stringPropertyNames
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

mondrianDotProperties

protected static final String mondrianDotProperties
See Also:
Constant Field Values
Constructor Detail

MondrianPropertiesBase

protected MondrianPropertiesBase(MondrianPropertiesBase.PropertySource propertySource)
Method Detail

triggersAreEnabled

public boolean triggersAreEnabled()
Overrides:
triggersAreEnabled in class org.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.


Get Mondrian at SourceForge.net. Fast, secure and free Open Source software downloads