incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmesc...@apache.org
Subject svn commit: r619865 - /incubator/sling/trunk/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/bundle/BundleResource.java
Date Fri, 08 Feb 2008 12:46:43 GMT
Author: fmeschbe
Date: Fri Feb  8 04:46:42 2008
New Revision: 619865

URL: http://svn.apache.org/viewvc?rev=619865&view=rev
Log:
BundleResource must also be SlingAdaptable and call to super.adaptTo

Modified:
    incubator/sling/trunk/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/bundle/BundleResource.java

Modified: incubator/sling/trunk/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/bundle/BundleResource.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/bundle/BundleResource.java?rev=619865&r1=619864&r2=619865&view=diff
==============================================================================
--- incubator/sling/trunk/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/bundle/BundleResource.java
(original)
+++ incubator/sling/trunk/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/bundle/BundleResource.java
Fri Feb  8 04:46:42 2008
@@ -25,6 +25,7 @@
 import java.net.URL;
 import java.util.Iterator;
 
+import org.apache.sling.adapter.SlingAdaptable;
 import org.apache.sling.api.resource.Resource;
 import org.apache.sling.api.resource.ResourceMetadata;
 import org.apache.sling.api.resource.ResourceProvider;
@@ -34,7 +35,8 @@
 import org.slf4j.LoggerFactory;
 
 /** A Resource that wraps a Bundle entry */
-public class BundleResource implements Resource, Descendable {
+public class BundleResource extends SlingAdaptable implements Resource,
+        Descendable {
 
     /** default log */
     private final Logger log = LoggerFactory.getLogger(getClass());
@@ -111,7 +113,7 @@
         }
 
         // fall back to nothing
-        return null;
+        return super.adaptTo(type);
     }
 
     public String toString() {



Mime
View raw message