Skip to content
Browse files

+ improved sessionHolderProvider discovery mechanism (declarative lis…

…t or

JDK 1.3 META-INF/services supported out-of-the-box)
  • Loading branch information...
1 parent 765a836 commit b38c08f30f33b57ff835ac37259e3de5b0429259 costin committed Nov 11, 2005
View
4 etc/jcr/jackrabbit/META-INF/services/org.springmodules.jcr.SessionHolderProvider
@@ -0,0 +1,4 @@
+#
+# JackRabbit specific SessionHolderProvider.
+#
+org.springmodules.jcr.jackrabbit.support.JackRabbitSessionHolderProvider
View
11 src/java/org/springmodules/jcr/jackrabbit/support/JackRabbitSessionHolderProvider.java
@@ -1,8 +1,8 @@
/**
* Created on Oct 4, 2005
*
- * $Id: JackRabbitSessionHolderProvider.java,v 1.1 2005/10/21 08:17:34 costin Exp $
- * $Revision: 1.1 $
+ * $Id: JackRabbitSessionHolderProvider.java,v 1.2 2005/11/11 15:48:52 costin Exp $
+ * $Revision: 1.2 $
*/
package org.springmodules.jcr.jackrabbit.support;
@@ -22,6 +22,13 @@
public class JackRabbitSessionHolderProvider implements SessionHolderProvider {
/**
+ * @see org.springmodules.jcr.SessionHolderProvider#acceptsRepository(java.lang.String)
+ */
+ public boolean acceptsRepository(String repositoryName) {
+ return "Jackrabbit".equals(repositoryName);
+ }
+
+ /**
* @see org.springmodules.jcr.SessionHolderProvider#createSessionHolder(javax.jcr.Session)
*/
public SessionHolder createSessionHolder(Session session) {
View
4 src/test/META-INF/services/org.springmodules.jcr.SessionHolderProvider
@@ -0,0 +1,4 @@
+#
+# JackRabbit specific SessionHolderProvider.
+#
+org.springmodules.jcr.jackrabbit.support.JackRabbitSessionHolderProvider

0 comments on commit b38c08f

Please sign in to comment.
Something went wrong with that request. Please try again.