You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "David Jencks (JIRA)" <de...@geronimo.apache.org> on 2004/12/05 21:02:20 UTC

[jira] Created: (GERONIMO-515) GeronimoPolicyConfigurationFactory does not always return same instance

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


[jira] Closed: (GERONIMO-515) GeronimoPolicyConfigurationFactory does not always return same instance

Posted by "Vamsavardhana Reddy (JIRA)" <ji...@apache.org>.
     [ 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

        

[jira] Resolved: (GERONIMO-515) GeronimoPolicyConfigurationFactory does not always return same instance

Posted by "David Jencks (JIRA)" <de...@geronimo.apache.org>.
     [ http://nagoya.apache.org/jira/browse/GERONIMO-515?page=history ]
     
David Jencks resolved GERONIMO-515:
-----------------------------------

     Assign To: Alan Cabrera
    Resolution: Fixed

Fixed in jetty-deployer branch. needs review.

> 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
>     Assignee: 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://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