Skip to content

Commit

Permalink
+ improved sessionHolderProvider discovery mechanism (declarative lis…
Browse files Browse the repository at this point in the history
…t or

JDK 1.3 META-INF/services supported out-of-the-box)
  • Loading branch information
costin committed Nov 11, 2005
1 parent 765a836 commit b38c08f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#
# JackRabbit specific SessionHolderProvider.
#
org.springmodules.jcr.jackrabbit.support.JackRabbitSessionHolderProvider
Original file line number Diff line number Diff line change
@@ -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;

Expand All @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#
# JackRabbit specific SessionHolderProvider.
#
org.springmodules.jcr.jackrabbit.support.JackRabbitSessionHolderProvider

0 comments on commit b38c08f

Please sign in to comment.