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/01/29 14:36:22 UTC
svn commit: r616306 -
/incubator/sling/trunk/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrResourceProvider.java
Author: fmeschbe
Date: Tue Jan 29 05:36:22 2008
New Revision: 616306
URL: http://svn.apache.org/viewvc?rev=616306&view=rev
Log:
Fix JavaDoc
Modified:
incubator/sling/trunk/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrResourceProvider.java
Modified: incubator/sling/trunk/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrResourceProvider.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrResourceProvider.java?rev=616306&r1=616305&r2=616306&view=diff
==============================================================================
--- incubator/sling/trunk/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrResourceProvider.java (original)
+++ incubator/sling/trunk/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrResourceProvider.java Tue Jan 29 05:36:22 2008
@@ -38,12 +38,10 @@
import org.slf4j.LoggerFactory;
/**
- * The <code>JcrResourceResolver</code> class implements the Sling
- * <code>ResourceResolver</code> and <code>ResourceResolver</code> interfaces
- * and in addition is a {@link PathResolver}. Instances of this class are
- * retrieved through the
- * {@link org.apache.sling.jcr.resource.JcrResourceResolverFactory#getResourceResolver(Session)}
- * method.
+ * The <code>JcrResourceProvider</code> is the main resource provider of this
+ * bundle providing access to JCR resources. This resoure provider is created
+ * for each <code>JcrResourceResolver</code> instance and is bound to the JCR
+ * session for a single request.
*/
public class JcrResourceProvider implements ResourceProvider {
@@ -68,12 +66,12 @@
return new String[] { "/" };
}
- public Resource getResource(HttpServletRequest request, String path) throws SlingException {
+ public Resource getResource(HttpServletRequest request, String path)
+ throws SlingException {
return getResource(path);
}
- public Resource getResource(String path)
- throws SlingException {
+ public Resource getResource(String path) throws SlingException {
try {
return createResource(path);
@@ -147,7 +145,7 @@
* Checks whether the item exists and this content manager's session has
* read access to the item. If the item does not exist, access control is
* ignored by this method and <code>false</code> is returned.
- *
+ *
* @param path The path to the item to check
* @return <code>true</code> if the item exists and this content manager's
* session has read access. If the item does not exist,