geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Jencks (JIRA)" <...@geronimo.apache.org>
Subject [jira] Created: (GERONIMO-515) GeronimoPolicyConfigurationFactory does not always return same instance
Date Sun, 05 Dec 2004 20:02:20 GMT
GeronimoPolicyConfigurationFactory does not always return same instance
-----------------------------------------------------------------------

         Key: GERONIMO-515
         URL: http://nagoya.apache.org/jira/browse/GERONIMO-515
     Project: Apache Geronimo
        Type: Bug
  Components: security  
    Versions: 1.0-M3    
    Reporter: David Jencks


>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);


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message