incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmesc...@apache.org
Subject svn commit: r643344 - /incubator/sling/trunk/jcr/base/src/main/java/org/apache/sling/jcr/base/internal/loader/Loader.java
Date Tue, 01 Apr 2008 09:59:08 GMT
Author: fmeschbe
Date: Tue Apr  1 02:58:33 2008
New Revision: 643344

URL: http://svn.apache.org/viewvc?rev=643344&view=rev
Log:
Nodetype loader should act as if the bundle is uninstalled and installed
when the bundle is updated instead of just re-registering the name
spaces. Otherwise any new node types will not be registered on update.

Modified:
    incubator/sling/trunk/jcr/base/src/main/java/org/apache/sling/jcr/base/internal/loader/Loader.java

Modified: incubator/sling/trunk/jcr/base/src/main/java/org/apache/sling/jcr/base/internal/loader/Loader.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/jcr/base/src/main/java/org/apache/sling/jcr/base/internal/loader/Loader.java?rev=643344&r1=643343&r2=643344&view=diff
==============================================================================
--- incubator/sling/trunk/jcr/base/src/main/java/org/apache/sling/jcr/base/internal/loader/Loader.java
(original)
+++ incubator/sling/trunk/jcr/base/src/main/java/org/apache/sling/jcr/base/internal/loader/Loader.java
Tue Apr  1 02:58:33 2008
@@ -112,8 +112,8 @@
     }
 
     public void updateBundle(Bundle bundle) {
-        this.unregisterNamespaces(bundle);
-        this.registerNamespaces(bundle);
+        unregisterBundle(bundle);
+        registerBundle(bundle);
     }
 
     /**



Mime
View raw message