jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting (JIRA)" <j...@apache.org>
Subject [jira] Created: (JCR-1607) Add a NamespaceHelper in jcr-commons
Date Fri, 16 May 2008 09:16:55 GMT
Add a NamespaceHelper in jcr-commons

                 Key: JCR-1607
                 URL: https://issues.apache.org/jira/browse/JCR-1607
             Project: Jackrabbit
          Issue Type: New Feature
          Components: jackrabbit-core, jackrabbit-jcr-commons, namespace
            Reporter: Jukka Zitting
            Assignee: Jukka Zitting
            Priority: Minor

We have a number of code snippets in jackrabbit-core and many JCR clients that do something
like the following:

* get the prefix/URI for a given namespace URI/prefix without throwing an exception if the
namespace is not found (return null instead)
* get a Map containing all current namespace prefix->URI mappings
* get the prefixed name for a given URI + local name pair in a given session (without a dependency
to the SPI)
* safely register a given namespace (don't throw if the namespace is already registered, automatically
select an unused prefix if needed, etc.)

I'd like to introduce a NamespaceHelper class in jcr-commons to cover such common code.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message