You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/11/07 09:19:34 UTC
[sling-org-apache-sling-bundleresource-impl] 17/30: SLING-1193
Fsresoruce and bundle resource implement the 2.0.8 API which means they
cant be used with ResourceUtil, updated.
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag org.apache.sling.bundleresource.impl-2.0.6
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-bundleresource-impl.git
commit 1ec85d27737e33dd4d0e8e287736960218ebdf17
Author: Ian Boston <ie...@apache.org>
AuthorDate: Thu Jul 29 11:09:57 2010 +0000
SLING-1193 Fsresoruce and bundle resource implement the 2.0.8 API which means they cant be used with ResourceUtil, updated.
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/bundleresource@980400 13f79535-47bb-0310-9956-ffa450edef68
---
pom.xml | 2 +-
.../java/org/apache/sling/bundleresource/impl/BundleResource.java | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/pom.xml b/pom.xml
index 7696da6..6f8b594 100644
--- a/pom.xml
+++ b/pom.xml
@@ -92,7 +92,7 @@
<dependency>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.api</artifactId>
- <version>2.0.8</version>
+ <version>2.0.9-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
diff --git a/src/main/java/org/apache/sling/bundleresource/impl/BundleResource.java b/src/main/java/org/apache/sling/bundleresource/impl/BundleResource.java
index af49830..9928522 100644
--- a/src/main/java/org/apache/sling/bundleresource/impl/BundleResource.java
+++ b/src/main/java/org/apache/sling/bundleresource/impl/BundleResource.java
@@ -28,7 +28,7 @@ import java.util.Iterator;
import javax.jcr.RepositoryException;
import javax.jcr.Session;
-import org.apache.sling.adapter.SlingAdaptable;
+import org.apache.sling.api.resource.AbstractResource;
import org.apache.sling.api.resource.Resource;
import org.apache.sling.api.resource.ResourceMetadata;
import org.apache.sling.api.resource.ResourceResolver;
@@ -36,7 +36,7 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/** A Resource that wraps a Bundle entry */
-public class BundleResource extends SlingAdaptable implements Resource {
+public class BundleResource extends AbstractResource implements Resource {
/** default log */
private final Logger log = LoggerFactory.getLogger(getClass());
@@ -208,7 +208,7 @@ public class BundleResource extends SlingAdaptable implements Resource {
return url;
}
- Iterator<Resource> listChildren() {
+ public Iterator<Resource> listChildren() {
return new BundleResourceIterator(this);
}
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.