javacommons/utils/javasrc/com/nokia/mj/impl/rt/JvmPort.java
branchRCL_3
changeset 18 9ac0a0a7da70
parent 14 04becd199f91
--- a/javacommons/utils/javasrc/com/nokia/mj/impl/rt/JvmPort.java	Tue May 11 16:07:20 2010 +0300
+++ b/javacommons/utils/javasrc/com/nokia/mj/impl/rt/JvmPort.java	Tue May 25 12:34:19 2010 +0300
@@ -48,7 +48,7 @@
      * A reference to object containing properties. In CLDC it is Hashtable,
      * otherwise it is Properties.
      */
-    private static Hashtable mPropertiesContainer;
+    private static DynamicProperty mPropertiesContainer;
 
     protected JvmPort()
     {
@@ -95,7 +95,7 @@
      * Sets the container containing system properties.
      * @param propertiesContainer system properties.
      */
-    public static void setPropertiesContainer(Hashtable propertiesContainer)
+    public static void setPropertiesContainer(DynamicProperty propertiesContainer)
     {
         mPropertiesContainer = propertiesContainer;
     }
@@ -194,8 +194,16 @@
      * @see com.nokia.mj.impl.runtimesupport.JvmPort#setSystemProperty.
      */
     public void setSystemProperty(Object key, Object value)
-{
-        mPropertiesContainer.put(key, value);
+    {
+        mPropertiesContainer.setSystemProperty(key, value);
+    }
+
+    /**
+     * @see com.nokia.mj.impl.runtimesupport.JvmPort#setUserProperty.
+     */
+    public void setUserProperty(Object key, Object value)
+    {
+        mPropertiesContainer.setUserProperty(key, value);
     }
 
     /**