org.apache.falcon.util
Class ApplicationProperties

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.apache.falcon.util.ApplicationProperties
All Implemented Interfaces:
Serializable, Cloneable, Map<Object,Object>
Direct Known Subclasses:
BuildProperties, DeploymentProperties, RuntimeProperties, StartupProperties

public abstract class ApplicationProperties
extends Properties

Base class for reading application properties.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.Properties
defaults
 
Constructor Summary
protected ApplicationProperties()
           
 
Method Summary
 String getDomain()
           
protected abstract  String getPropertyFile()
           
protected  void init()
           
protected  void loadProperties()
           
protected  void loadProperties(String propertyFileName, String confDir)
          This method reads the given properties file in the following order: config.location & classpath.
protected  void setDomain(String domain)
           
 
Methods inherited from class java.util.Properties
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, 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
 

Constructor Detail

ApplicationProperties

protected ApplicationProperties()
                         throws FalconException
Throws:
FalconException
Method Detail

getPropertyFile

protected abstract String getPropertyFile()

init

protected void init()
             throws FalconException
Throws:
FalconException

setDomain

protected void setDomain(String domain)

getDomain

public String getDomain()

loadProperties

protected void loadProperties()
                       throws FalconException
Throws:
FalconException

loadProperties

protected void loadProperties(String propertyFileName,
                              String confDir)
                       throws FalconException
This method reads the given properties file in the following order: config.location & classpath. It falls back in that specific order.

Throws:
FalconException


Copyright © 2013-2014 Apache Software Foundation. All Rights Reserved.