[ http://issues.apache.org/jira/browse/GERONIMO-515?page=all ]
Vamsavardhana Reddy closed GERONIMO-515. ---------------------------------------- > GeronimoPolicyConfigurationFactory does not always return same instance > ----------------------------------------------------------------------- > > Key: GERONIMO-515 > URL: http://issues.apache.org/jira/browse/GERONIMO-515 > Project: Geronimo > Issue Type: Bug > Components: security > Affects Versions: 1.0-M3 > Reporter: David Jencks > Assigned To: Alan Cabrera > > 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://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
