Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8097297

[packager] Provide friendly APIs to access User JVM Preferences

XMLWordPrintable

      Currently when using the User JVM Preferences the user has to know the particulars of how the magic values for the preference node are and where to use the java preferences api.

      We should provide a simple class with three static methods. One that returns a Map<String, String> of the current User JVM preferences, one that when passed in a Map<String, String> will write those values to the user jam preferences, and a method that returns a List<String> of the suer JVM options that the launcher will be examining for user jvm values. How the launcher stores and retrieves those values is opaque to the end user, and in fact allows us to provide different store mechanisms.

      What needs to be determined is what jar these classes will live in and how those will be made available to a runtime class.

      I propose deploy.jar, and that it will always be brought in if the javaruntime the self-contained-applicaiton will be using contains it. This is the current practice for including the jar anyway, so no more magic would need to be written. I am open to other suggestions and this one is provided just to get the ball rolling.

            shemnon Danno Ferrin (Inactive)
            shemnon Danno Ferrin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: