jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tri...@apache.org
Subject svn commit: r696045 - in /jackrabbit/branches/1.4/jackrabbit-webapp/src/main/java/org/apache/jackrabbit/j2ee: RepositoryAccessServlet.java RepositoryStartupServlet.java
Date Tue, 16 Sep 2008 20:40:03 GMT
Author: tripod
Date: Tue Sep 16 13:40:02 2008
New Revision: 696045

URL: http://svn.apache.org/viewvc?rev=696045&view=rev
Log:
JCR-1736 Expose BootstrapConfig in Servlets

Modified:
    jackrabbit/branches/1.4/jackrabbit-webapp/src/main/java/org/apache/jackrabbit/j2ee/RepositoryAccessServlet.java
    jackrabbit/branches/1.4/jackrabbit-webapp/src/main/java/org/apache/jackrabbit/j2ee/RepositoryStartupServlet.java

Modified: jackrabbit/branches/1.4/jackrabbit-webapp/src/main/java/org/apache/jackrabbit/j2ee/RepositoryAccessServlet.java
URL: http://svn.apache.org/viewvc/jackrabbit/branches/1.4/jackrabbit-webapp/src/main/java/org/apache/jackrabbit/j2ee/RepositoryAccessServlet.java?rev=696045&r1=696044&r2=696045&view=diff
==============================================================================
--- jackrabbit/branches/1.4/jackrabbit-webapp/src/main/java/org/apache/jackrabbit/j2ee/RepositoryAccessServlet.java
(original)
+++ jackrabbit/branches/1.4/jackrabbit-webapp/src/main/java/org/apache/jackrabbit/j2ee/RepositoryAccessServlet.java
Tue Sep 16 13:40:02 2008
@@ -103,7 +103,7 @@
      * @param ctx the servlet context
      * @return this servlet
      */
-    private static RepositoryAccessServlet getInstance(ServletContext ctx) {
+    public static RepositoryAccessServlet getInstance(ServletContext ctx) {
         final RepositoryAccessServlet instance = (RepositoryAccessServlet) ctx.getAttribute(CTX_PARAM_THIS);
         if(instance==null) {
             throw new IllegalStateException(
@@ -323,6 +323,14 @@
     }
 
     /**
+     * Returns the config that was used to bootstrap this servlet.
+     * @return the bootstrap config or <code>null</code>.
+     */
+    public BootstrapConfig getBootstrapConfig() {
+        return config;
+    }
+
+    /**
      * optional class for RMI, will only be used, if RMI client is present
      */
     protected static abstract class ClientFactoryDelegater {

Modified: jackrabbit/branches/1.4/jackrabbit-webapp/src/main/java/org/apache/jackrabbit/j2ee/RepositoryStartupServlet.java
URL: http://svn.apache.org/viewvc/jackrabbit/branches/1.4/jackrabbit-webapp/src/main/java/org/apache/jackrabbit/j2ee/RepositoryStartupServlet.java?rev=696045&r1=696044&r2=696045&view=diff
==============================================================================
--- jackrabbit/branches/1.4/jackrabbit-webapp/src/main/java/org/apache/jackrabbit/j2ee/RepositoryStartupServlet.java
(original)
+++ jackrabbit/branches/1.4/jackrabbit-webapp/src/main/java/org/apache/jackrabbit/j2ee/RepositoryStartupServlet.java
Tue Sep 16 13:40:02 2008
@@ -590,6 +590,14 @@
     }
 
     /**
+     * Returns the config that was used to bootstrap this servlet.
+     * @return the bootstrap config or <code>null</code>.
+     */
+    public BootstrapConfig getBootstrapConfig() {
+        return config;
+    }
+
+    /**
      * Return the fully qualified name of the class providing the remote
      * repository. The class whose name is returned must implement the
      * {@link RemoteFactoryDelegater} interface.



Mime
View raw message