You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by cz...@apache.org on 2008/04/30 08:19:27 UTC
svn commit: r652287 -
/incubator/sling/trunk/sling/bundleresource/src/main/java/org/apache/sling/bundleresource/impl/Activator.java
Author: cziegeler
Date: Tue Apr 29 23:19:27 2008
New Revision: 652287
URL: http://svn.apache.org/viewvc?rev=652287&view=rev
Log:
Move constant to bundleresource module.
Modified:
incubator/sling/trunk/sling/bundleresource/src/main/java/org/apache/sling/bundleresource/impl/Activator.java
Modified: incubator/sling/trunk/sling/bundleresource/src/main/java/org/apache/sling/bundleresource/impl/Activator.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/sling/bundleresource/src/main/java/org/apache/sling/bundleresource/impl/Activator.java?rev=652287&r1=652286&r2=652287&view=diff
==============================================================================
--- incubator/sling/trunk/sling/bundleresource/src/main/java/org/apache/sling/bundleresource/impl/Activator.java (original)
+++ incubator/sling/trunk/sling/bundleresource/src/main/java/org/apache/sling/bundleresource/impl/Activator.java Tue Apr 29 23:19:27 2008
@@ -18,8 +18,6 @@
*/
package org.apache.sling.bundleresource.impl;
-import static org.apache.sling.jcr.resource.JcrResourceConstants.BUNDLE_RESOURCE_ROOTS;
-
import java.util.HashMap;
import java.util.Map;
@@ -33,17 +31,23 @@
public class Activator implements BundleActivator, BundleListener {
+ /**
+ * The name of the bundle manifest header listing the resource provider root
+ * paths provided by the bundle (value is "Sling-Bundle-Resources").
+ */
+ public static final String BUNDLE_RESOURCE_ROOTS = "Sling-Bundle-Resources";
+
/** default log */
private final Logger log = LoggerFactory.getLogger(getClass());
-
+
private Map<Long, BundleResourceProvider> bundleResourceProviderMap = new HashMap<Long, BundleResourceProvider>();
-
+
private BundleContext bundleContext;
public void start(BundleContext context) throws Exception {
this.bundleContext = context;
-
+
context.addBundleListener(this);
try {
@@ -86,7 +90,7 @@
break;
}
}
-
+
// ---------- Bundle provided resources -----------------------------------
private void addBundleResourceProvider(Bundle bundle) {