Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-38941

Add ability to "promote" sakai.property entries to be System Properties

    Details

    • Type: Bug
    • Status: RESOLVED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.4
    • Fix Version/s: 11.0
    • Component/s: Kernel
    • Labels:
      None
    • 10 status:
      Please Merge
    • Property addition/change required:
      Yes
    • Previous Issue Keys:
      KNL-1361

      Description

      In order to set a System-wide property, we add the suffix of "@SystemProperty" to the property in the sakai.properties file:

      kernel.test.key=kernel
      system.test.key@SystemProperty=sakai

      Once this is done, any Java code anywhere in the Sakai JVM can do

      System.getProperty("system.test.key")

      To retrieve the value of that property key. The use case for this is if a third-party jar that we do not want to modify in Sakai needs a bit of configuration in order to work. As an example, a Factory within a third party jar might need to be told which implementation to use when running within the Sakai JVM.

      I would like to see this back-ported to 10.x once we like the implementation.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                csev Charles Severance
                Reporter:
                csev Charles Severance
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code