jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From edgarp...@apache.org
Subject svn commit: r306970 - in /incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/jndi: BindableRepository.java RegistryHelper.java
Date Fri, 07 Oct 2005 01:10:49 GMT
Author: edgarpoce
Date: Thu Oct  6 18:10:32 2005
New Revision: 306970

URL: http://svn.apache.org/viewcvs?rev=306970&view=rev
Log:
JCR-243 - applying stefan's suggestions

Modified:
    incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/jndi/BindableRepository.java
    incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/jndi/RegistryHelper.java

Modified: incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/jndi/BindableRepository.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/jndi/BindableRepository.java?rev=306970&r1=306969&r2=306970&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/jndi/BindableRepository.java
(original)
+++ incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/jndi/BindableRepository.java
Thu Oct  6 18:10:32 2005
@@ -53,7 +53,7 @@
  * {@link #create(String, String) create} method and during
  * serialization and JNDI "referenciation".
  */
-public class BindableRepository implements Repository, Referenceable, Serializable {
+class BindableRepository implements Repository, Referenceable, Serializable {
 
     /** The serialization UID of this class. */
     static final long serialVersionUID = -2298220550793843166L;
@@ -232,7 +232,7 @@
     /**
      * Delegated to the underlying repository instance.
      */
-    public void shutdown() {
+    void shutdown() {
     	((RepositoryImpl) delegatee).shutdown() ;
     }
 }

Modified: incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/jndi/RegistryHelper.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/jndi/RegistryHelper.java?rev=306970&r1=306969&r2=306970&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/jndi/RegistryHelper.java
(original)
+++ incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/jndi/RegistryHelper.java
Thu Oct  6 18:10:32 2005
@@ -63,7 +63,9 @@
     }
 
     /**
-     * Removes the given JNDI binding.
+     * This method shutdowns a {@link BindableRepository BindableRepository}
+     * instance using the given configuration information, and unbinds
+     * it from the given JNDI context.
      *
      * @param ctx  context where the repository should be unregistered (i.e. unbound)
      * @param name the name of the repository to unregister
@@ -71,6 +73,7 @@
      */
     public static void unregisterRepository(Context ctx, String name)
             throws NamingException {
+        ((BindableRepository) ctx.lookup(name)).shutdown() ;
         ctx.unbind(name);
     }
 }



Mime
View raw message