jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r507592 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/NamespaceRegistryImpl.java
Date Wed, 14 Feb 2007 16:04:05 GMT
Author: stefan
Date: Wed Feb 14 08:04:04 2007
New Revision: 507592

URL: http://svn.apache.org/viewvc?view=rev&rev=507592
Log:
synchronizing registerNamespace methods

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/NamespaceRegistryImpl.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/NamespaceRegistryImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/NamespaceRegistryImpl.java?view=diff&rev=507592&r1=507591&r2=507592
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/NamespaceRegistryImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/NamespaceRegistryImpl.java
Wed Feb 14 08:04:04 2007
@@ -327,10 +327,12 @@
      *
      * @param prefixHint the prefix hint
      * @param uri the namespace URI
+     * @throws NamespaceException if an illegal attempt is made to register
+     *                            a mapping
      * @throws RepositoryException if an unexpected error occurs
      * @see #registerNamespace(String, String)
      */
-    public void safeRegisterNamespace(String prefixHint, String uri)
+    public synchronized void safeRegisterNamespace(String prefixHint, String uri)
             throws NamespaceException, RepositoryException {
         try {
             // Check if the namespace is already registered
@@ -405,7 +407,7 @@
     /**
      * {@inheritDoc}
      */
-    public void registerNamespace(String prefix, String uri)
+    public synchronized void registerNamespace(String prefix, String uri)
             throws NamespaceException, UnsupportedRepositoryOperationException,
             AccessDeniedException, RepositoryException {
         if (prefix == null || uri == null) {



Mime
View raw message