|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Dictionary
java.util.Hashtable
java.util.Properties
com.rhi.architecture.lang.CompositeProperties
This class resolves references in a properties file to other properties files. Properties files are categorized in 2 classes for the explanation of this class.Base properties file can have referenced properties file but not the other way round. This is done to limit features provided by this class to the necessary ones and to keep the class simple.
- Base properties - these are like base classes in OOP, and properties from these files are taken as defaults. These properties can be overridden by specifying in a more specific file. Base property files are identified by "base.include.files" entry. Multiple files can be specified separated by comma.
- Referenced properties - these are like object references from a class in OOP, properties from these files will be read and added to main properties file. These files are identified by entries starting with "include." *
PropertyUtils, PropertiesException
,
Serialized FormField Summary |
Fields inherited from class java.util.Properties |
defaults |
Constructor Summary | |
CompositeProperties()
default constructor |
|
CompositeProperties(java.util.Properties plain)
This constructor can be used if a Properties object is already existing, but the user would like to resolve any file inclusions it may contain. |
|
CompositeProperties(java.lang.String fileName)
constructor - loads a Property file of the provided name from the classpath. |
Method Summary | |
void |
load(java.io.InputStream is)
load propery name/value pairs from an input stream. |
Methods inherited from class java.util.Properties |
getProperty, getProperty, list, list, propertyNames, save, setProperty, store |
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 |
public CompositeProperties()
public CompositeProperties(java.lang.String fileName) throws PropertiesException
fileName
-
PropertiesException
public CompositeProperties(java.util.Properties plain) throws PropertiesException
Properties
interface to a client.
plain
-
PropertiesException
Method Detail |
public void load(java.io.InputStream is) throws java.io.IOException
is
- -
InputStream containing properties.
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |