org.apache.openejb.spring
Class SpringTransactionPolicyFactory

java.lang.Object
  extended by org.apache.openejb.spring.SpringTransactionPolicyFactory
All Implemented Interfaces:
TransactionPolicyFactory

public class SpringTransactionPolicyFactory
extends java.lang.Object
implements TransactionPolicyFactory


Constructor Summary
SpringTransactionPolicyFactory(org.springframework.transaction.PlatformTransactionManager transactionManager)
           
 
Method Summary
 TransactionPolicy createTransactionPolicy(TransactionType type)
          Creates and begins a TransactionPolicy for the specified TransactionType.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringTransactionPolicyFactory

public SpringTransactionPolicyFactory(org.springframework.transaction.PlatformTransactionManager transactionManager)
Method Detail

createTransactionPolicy

public TransactionPolicy createTransactionPolicy(TransactionType type)
                                          throws SystemException,
                                                 ApplicationException
Description copied from interface: TransactionPolicyFactory
Creates and begins a TransactionPolicy for the specified TransactionType. If this method returns successfully, the specfied transaction type is active and must be committed.

Specified by:
createTransactionPolicy in interface TransactionPolicyFactory
Parameters:
type - the desired type of transaction
Returns:
the active TransactionPolicy
Throws:
SystemException - if an unrecoverable exception is encountered
ApplicationException - if recoverable exception is encountered


Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.