Jumpi v1.2.0

org.jumpi.impl
Class ConfigurationLoader

java.lang.Object
  |
  +--org.jumpi.impl.AbstractConfigurationLoader
        |
        +--org.jumpi.impl.ConfigurationLoader
All Implemented Interfaces:
ConfigurationLoader
Direct Known Subclasses:
FileConfigurationLoader

public class ConfigurationLoader
extends AbstractConfigurationLoader

Convert provided configuration values into Jumpi properties and allow replacement substitution of system property values with specially marked property values. Property values starting with $ are replaced with system properties named after the $.


Field Summary
 
Fields inherited from class org.jumpi.impl.AbstractConfigurationLoader
PROPERTY_SET_KEY, PROPERTY_SYSTEM_PREFIX, REMOVE_PROPERTY
 
Constructor Summary
ConfigurationLoader()
           
 
Method Summary
protected  void addSystemProperties(java.util.Hashtable props)
          Add any System properties to the list of properties.
protected  void loadPropertySet(java.lang.String propertySetName, java.util.Hashtable props, java.util.Hashtable parameters)
           Does nothing.
 
Methods inherited from class org.jumpi.impl.AbstractConfigurationLoader
getConfiguration, getJumpiClassname, replaceCustomProperties, replaceSystemProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationLoader

public ConfigurationLoader()
Method Detail

loadPropertySet

protected void loadPropertySet(java.lang.String propertySetName,
                               java.util.Hashtable props,
                               java.util.Hashtable parameters)
                        throws java.lang.Exception

Does nothing.

Specified by:
loadPropertySet in class AbstractConfigurationLoader
Parameters:
propertySetName - not used.
props - not used.
parameters - not used.
Throws:
java.lang.Exception - never.

addSystemProperties

protected void addSystemProperties(java.util.Hashtable props)
Add any System properties to the list of properties. Only in JDK11 since MIDP API does not support listing of System properties. Replace any existing property with the system property name with the system property.

Specified by:
addSystemProperties in class AbstractConfigurationLoader
Parameters:
props - the Properties where to place any system properties.

Jumpi v1.2.0

Copyright © 2003, Peter Jonathan Klauser.