Jumpi v1.2.0

org.jumpi.impl
Class MidletConfigurationLoader

java.lang.Object
  |
  +--org.jumpi.impl.AbstractConfigurationLoader
        |
        +--org.jumpi.impl.MidletConfigurationLoader
All Implemented Interfaces:
ConfigurationLoader

public class MidletConfigurationLoader
extends AbstractConfigurationLoader

Convert provided configuration values into Jumpi properties, adding any Jumpi Midlet properties from the Midlet System environment ( and in doing so replace any existing property of the same name).

Use jumpi.midlet.key>N< for key names and jumpi.midlet.value>N< for their corresponding key values.


Field Summary
 
Fields inherited from class org.jumpi.impl.AbstractConfigurationLoader
PROPERTY_SET_KEY, PROPERTY_SYSTEM_PREFIX, REMOVE_PROPERTY
 
Constructor Summary
MidletConfigurationLoader()
           
 
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

MidletConfigurationLoader

public MidletConfigurationLoader()
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 - if any failure condition occurs.

addSystemProperties

protected void addSystemProperties(java.util.Hashtable props)

Add any System properties to the list of properties. Since it is not possible to inquire what these properties through Midp's System class, it is necessary to define a naming scheme for properties.

Use jumpi.midlet.key>N< for key names and jumpi.midlet.value>N< for their corresponding key values.

A maximum of 100 key, value pairs is retrieved.

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.