org.springframework.extensions.jcr
Interface SessionHolderProvider

All Known Implementing Classes:
GenericSessionHolderProvider, JackRabbitSessionHolderProvider

public interface SessionHolderProvider

SessionHolderProvider is a factory that creates a session holder for classes which require collaboration with TransactionSynchronizationManager. Because there is no standard on how to a Jcr repository participates inside transactions, each implementation has it's own support (XAResource,Transaction) which has to be wrapped in the approapriate holder.

Author:
Costin Leau, Sergio Bossa, Salvatore Incandela

Method Summary
 boolean acceptsRepository(java.lang.String repositoryName)
          Method for maching the sessionHolderProvider against a repository (given by name).
 SessionHolder createSessionHolder(javax.jcr.Session session)
          Return the specific session holder.
 

Method Detail

createSessionHolder

SessionHolder createSessionHolder(javax.jcr.Session session)
Return the specific session holder.

Parameters:
session -
Returns:

acceptsRepository

boolean acceptsRepository(java.lang.String repositoryName)
Method for maching the sessionHolderProvider against a repository (given by name).

Parameters:
repositoryName -
Returns:
true if the sessionHolderProvider is suitable for the given repository name, false otherwise.


Copyright © 2009. All Rights Reserved.