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

Refactor: replace references to static configuration instance

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.0
    • Component/s: admin, audit, plugins
    • Labels:
      None

      Description

      Ranger modules plugins/admin/audit obtain configurations from a static instance of RangerConfiguration class. While this is convenient, it limits the usability of the classes in different contexts, due to indirect dependency on global/static state. Static method RangerConfiguration.getInstance() should be removed, all its usage should be updated with an alternate mechanism that doesn't rely on global/static state.

        Attachments

          Activity

            People

            • Assignee:
              madhan Madhan Neethiraj
              Reporter:
              madhan Madhan Neethiraj
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: