Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-1478

Refactor RangerPolicyEngineOptions, RangerConfiguration is looked up too many times

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.7.0
    • 1.0.0
    • plugins
    • Patch

    Description

      RangerPolicyEngineOptions has a lot of public fields, which is written from various places from the code base, which should be avoided. That object is configured from RangerConfiguration, but in the middle of the plugin initialization code, which makes this a bit more complex, than it should be.
      Suggestions:

      • RangerConfiguration should be treated as an object, not a static facade for a couple of config values
      • RangerPolicyEngineOptions should get his configuration from directly the RangerConfiguration, in an explicit, encapsulated way.

      Attachments

        Activity

          People

            zsombor Zsombor Gegesy
            zsombor Zsombor Gegesy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: