javacommons/utils/javasrc/com/nokia/mj/impl/rt/JvmPort.java
branchRCL_3
changeset 25 9ac0a0a7da70
parent 19 04becd199f91
child 80 d6dafc5d983f
equal deleted inserted replaced
24:0fd27995241b 25:9ac0a0a7da70
    46 
    46 
    47     /**
    47     /**
    48      * A reference to object containing properties. In CLDC it is Hashtable,
    48      * A reference to object containing properties. In CLDC it is Hashtable,
    49      * otherwise it is Properties.
    49      * otherwise it is Properties.
    50      */
    50      */
    51     private static Hashtable mPropertiesContainer;
    51     private static DynamicProperty mPropertiesContainer;
    52 
    52 
    53     protected JvmPort()
    53     protected JvmPort()
    54     {
    54     {
    55     }
    55     }
    56 
    56 
    93 
    93 
    94     /**
    94     /**
    95      * Sets the container containing system properties.
    95      * Sets the container containing system properties.
    96      * @param propertiesContainer system properties.
    96      * @param propertiesContainer system properties.
    97      */
    97      */
    98     public static void setPropertiesContainer(Hashtable propertiesContainer)
    98     public static void setPropertiesContainer(DynamicProperty propertiesContainer)
    99     {
    99     {
   100         mPropertiesContainer = propertiesContainer;
   100         mPropertiesContainer = propertiesContainer;
   101     }
   101     }
   102 
   102 
   103 
   103 
   192 
   192 
   193     /**
   193     /**
   194      * @see com.nokia.mj.impl.runtimesupport.JvmPort#setSystemProperty.
   194      * @see com.nokia.mj.impl.runtimesupport.JvmPort#setSystemProperty.
   195      */
   195      */
   196     public void setSystemProperty(Object key, Object value)
   196     public void setSystemProperty(Object key, Object value)
   197 {
   197     {
   198         mPropertiesContainer.put(key, value);
   198         mPropertiesContainer.setSystemProperty(key, value);
       
   199     }
       
   200 
       
   201     /**
       
   202      * @see com.nokia.mj.impl.runtimesupport.JvmPort#setUserProperty.
       
   203      */
       
   204     public void setUserProperty(Object key, Object value)
       
   205     {
       
   206         mPropertiesContainer.setUserProperty(key, value);
   199     }
   207     }
   200 
   208 
   201     /**
   209     /**
   202      * @see com.nokia.mj.impl.runtimesupport.JvmPort#shrinkJavaHeapToMinimum.
   210      * @see com.nokia.mj.impl.runtimesupport.JvmPort#shrinkJavaHeapToMinimum.
   203      */
   211      */