Uploaded image for project: 'Geronimo'
  1. Geronimo
  2. GERONIMO-515

GeronimoPolicyConfigurationFactory does not always return same instance

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-M3
    • None
    • security
    • None

    Description

      From javadoc for getPolicyConfiguration(String contextID, boolean remove)

      • For a given value of policy context identifier, this method must always
      • return the same instance of PolicyConfiguration and there must be at
      • most one actual instance of a PolicyConfiguration with a given policy
      • context identifier (during a process context). <p>
        *
      • To preserve the invariant that there be at most one PolicyConfiguration
      • object for a given policy context, it may be necessary for this method
      • to be thread safe.

      From our implementation:

      if (configuration == null || remove) {
      configuration = new PolicyConfigurationGeneric(contextID);
      configurations.put(contextID, configuration);

      Attachments

        Activity

          People

            maguro Alan Cabrera
            djencks David Jencks
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: