jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From un...@apache.org
Subject svn commit: r1345508 - in /jackrabbit/trunk/jackrabbit-jcr-servlet/src/main/java/org/apache/jackrabbit/servlet: AbstractRepositoryServlet.java ContextRepositoryServlet.java
Date Sat, 02 Jun 2012 13:35:29 GMT
Author: unico
Date: Sat Jun  2 13:35:29 2012
New Revision: 1345508

URL: http://svn.apache.org/viewvc?rev=1345508&view=rev
Log:
adjust outdated comments, fix typo

Modified:
    jackrabbit/trunk/jackrabbit-jcr-servlet/src/main/java/org/apache/jackrabbit/servlet/AbstractRepositoryServlet.java
    jackrabbit/trunk/jackrabbit-jcr-servlet/src/main/java/org/apache/jackrabbit/servlet/ContextRepositoryServlet.java

Modified: jackrabbit/trunk/jackrabbit-jcr-servlet/src/main/java/org/apache/jackrabbit/servlet/AbstractRepositoryServlet.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-servlet/src/main/java/org/apache/jackrabbit/servlet/AbstractRepositoryServlet.java?rev=1345508&r1=1345507&r2=1345508&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-servlet/src/main/java/org/apache/jackrabbit/servlet/AbstractRepositoryServlet.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-servlet/src/main/java/org/apache/jackrabbit/servlet/AbstractRepositoryServlet.java
Sat Jun  2 13:35:29 2012
@@ -27,19 +27,16 @@ import javax.servlet.http.HttpServletReq
 import javax.servlet.http.HttpServletResponse;
 
 import org.apache.jackrabbit.commons.repository.ProxyRepository;
-import org.apache.jackrabbit.commons.repository.RepositoryFactory;
 
 /**
  * Abstract base class for servlets that make a repository available in
  * the servlet context. This class handles the initialization and cleanup
  * tasks of setting up and clearing the configured repository attribute,
  * while a subclass only needs to implement the abstract
- * {@link #getRepositoryFactory()} method that returns a factory for
- * retrieving the actual content repository.
+ * {@link #getRepository()} method that returns the actual content repository.
  * <p>
  * The {@link Repository} instance bound to the servlet context is actually
- * a {@link ProxyRepository} that uses the given {@link RepositoryFactory}
- * for late binding of the underlying content repository.
+ * a {@link ProxyRepository} for late binding of the underlying content repository.
  * <p>
  * The default name of the repository attribute is
  * "<code>javax.jcr.Repository</code>", but it can be changed by specifying
@@ -67,11 +64,10 @@ import org.apache.jackrabbit.commons.rep
 public abstract class AbstractRepositoryServlet extends HttpServlet {
 
     /**
-     * Binds a {@link ProxyRepository} with the factory returned by
-     * {@link #getRepositoryFactory()} in the configured servlet
-     * context attribute.
+     * Binds a {@link ProxyRepository} with the repository returned by
+     * {@link #getRepository()} in the configured servlet context attribute.
      *
-     * @throws ServletException if the factory could not be retrieved
+     * @throws ServletException
      */
     public void init() throws ServletException {
         getServletContext().setAttribute(

Modified: jackrabbit/trunk/jackrabbit-jcr-servlet/src/main/java/org/apache/jackrabbit/servlet/ContextRepositoryServlet.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-servlet/src/main/java/org/apache/jackrabbit/servlet/ContextRepositoryServlet.java?rev=1345508&r1=1345507&r2=1345508&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-servlet/src/main/java/org/apache/jackrabbit/servlet/ContextRepositoryServlet.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-servlet/src/main/java/org/apache/jackrabbit/servlet/ContextRepositoryServlet.java
Sat Jun  2 13:35:29 2012
@@ -93,12 +93,12 @@ public class ContextRepositoryServlet ex
         } else if (repository != null) {
             throw new RepositoryException(
                     "Invalid repository: Attribute " + name
-                    + " in servet context " + otherContext.getServletContextName()
+                    + " in servlet context " + otherContext.getServletContextName()
                     + " is an instance of " + repository.getClass().getName());
         } else {
             throw new RepositoryException(
                     "Repository not found: Attribute " + name
-                    + " does not exist in servet context "
+                    + " does not exist in servlet context "
                     + otherContext.getServletContextName());
         }
     }



Mime
View raw message