jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r655580 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/NamespaceRegistryImpl.java
Date Mon, 12 May 2008 17:58:15 GMT
Author: jukka
Date: Mon May 12 10:58:14 2008
New Revision: 655580

URL: http://svn.apache.org/viewvc?rev=655580&view=rev
Log:
JCR-1564: JSR 283 namespace handling
    - Removed listening of namespace registry in core as JSR 283 removes
      the need to notify sessions about global namespace remappings

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?rev=655580&r1=655579&r2=655580&view=diff
==============================================================================
--- 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
Mon May 12 10:58:14 2008
@@ -20,7 +20,7 @@
 import org.apache.jackrabbit.core.cluster.NamespaceEventListener;
 import org.apache.jackrabbit.core.fs.FileSystem;
 import org.apache.jackrabbit.core.fs.FileSystemResource;
-import org.apache.jackrabbit.spi.commons.namespace.AbstractNamespaceResolver;
+import org.apache.jackrabbit.spi.commons.namespace.NamespaceResolver;
 import org.apache.jackrabbit.spi.commons.conversion.NameResolver;
 import org.apache.jackrabbit.spi.commons.conversion.PathResolver;
 import org.apache.jackrabbit.spi.Name;
@@ -44,8 +44,8 @@
 /**
  * A <code>NamespaceRegistryImpl</code> ...
  */
-public class NamespaceRegistryImpl extends AbstractNamespaceResolver
-        implements NamespaceRegistry, NamespaceEventListener {
+public class NamespaceRegistryImpl
+        implements NamespaceRegistry, NamespaceResolver, NamespaceEventListener {
 
     private static Logger log = LoggerFactory.getLogger(NamespaceRegistryImpl.class);
 
@@ -103,7 +103,6 @@
      */
     protected NamespaceRegistryImpl(FileSystem nsRegStore)
             throws RepositoryException {
-        super(true); // enable listener support
         this.nsRegStore = nsRegStore;
         load();
     }
@@ -461,15 +460,6 @@
 
         // persist mappings
         store();
-
-        // notify listeners
-        if (oldPrefix != null) {
-            // remapped existing namespace uri to new prefix
-            notifyNamespaceRemapped(oldPrefix, prefix, uri);
-        } else {
-            // added new namespace uri mapped to prefix
-            notifyNamespaceAdded(prefix, uri);
-        }
     }
 
     /**
@@ -559,15 +549,6 @@
 
         // persist mappings
         store();
-
-        // notify listeners
-        if (oldPrefix != null) {
-            // remapped existing namespace uri to new prefix
-            notifyNamespaceRemapped(oldPrefix, newPrefix, uri);
-        } else {
-            // added new namespace uri mapped to prefix
-            notifyNamespaceAdded(newPrefix, uri);
-        }
-
     }
+
 }



Mime
View raw message