You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by fm...@apache.org on 2008/04/01 11:59:08 UTC
svn commit: r643344 -
/incubator/sling/trunk/jcr/base/src/main/java/org/apache/sling/jcr/base/internal/loader/Loader.java
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);
}
/**