You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-dev@ws.apache.org by "Dan Jemiolo (JIRA)" <ji...@apache.org> on 2006/10/10 01:39:20 UTC

[jira] Closed: (MUSE-125) Store resource's capabilities by LinkedHashMap instead of HashMap

     [ http://issues.apache.org/jira/browse/MUSE-125?page=all ]

Dan Jemiolo closed MUSE-125.
----------------------------

    Resolution: Fixed

good news - this is already the case. I was thinking of the WSA-action-to-capability map, which is a HashMap. The SimpleResource stores capabilities-by-URI as a LinkedHashMap, so if you do getCapabilityURIs(), you'll get the URIs in the order they are in muse.xml. You can then use getCapability(URI) to get the Capability objects in order.

ResourceDefinition reads and stores the CapabilityDefinitions in an ArrayList, so they are already in order.


> Store resource's capabilities by LinkedHashMap instead of HashMap
> -----------------------------------------------------------------
>
>                 Key: MUSE-125
>                 URL: http://issues.apache.org/jira/browse/MUSE-125
>             Project: Muse
>          Issue Type: Improvement
>          Components: Core Engine - Resource and Capability APIs
>    Affects Versions: 2.0.0
>            Reporter: Dan Jemiolo
>         Assigned To: Dan Jemiolo
>            Priority: Minor
>             Fix For: 2.1.0
>
>
> Using a linked map instead of a regular map will keep the capabilities in the order they are in the descriptor. This does NOT change the non-deterministic nature of capability loading, but allows users to find and leverage the order of capabilities if they really need it. Users can add capabilities to a resource and reuse the ordering to set up other processing systems within the resource, without having to add more content or extensions to the muse.xml file.

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

        

---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org