org.apache.aries.jpa.container.tx.impl
Class OSGiTransactionManager
java.lang.Object
org.apache.aries.jpa.container.tx.impl.OSGiTransactionManager
- All Implemented Interfaces:
- org.apache.aries.util.tracker.SingleServiceTracker.SingleServiceListener
public class OSGiTransactionManager
- extends Object
- implements org.apache.aries.util.tracker.SingleServiceTracker.SingleServiceListener
Used to avoid a dependency on javax.transaction.TransactionManager
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
init
public static void init(org.osgi.framework.BundleContext ctx)
get
public static OSGiTransactionManager get()
destroy
public void destroy()
getStatus
public int getStatus()
throws SystemException
- Throws:
SystemException
resume
public void resume(Transaction arg0)
throws IllegalStateException,
InvalidTransactionException,
SystemException
- Throws:
IllegalStateException
InvalidTransactionException
SystemException
setRollbackOnly
public void setRollbackOnly()
throws IllegalStateException,
SystemException
- Throws:
IllegalStateException
SystemException
getTransaction
public Object getTransaction()
throws SystemException
- Throws:
SystemException
serviceFound
public void serviceFound()
- Specified by:
serviceFound in interface org.apache.aries.util.tracker.SingleServiceTracker.SingleServiceListener
serviceLost
public void serviceLost()
- Specified by:
serviceLost in interface org.apache.aries.util.tracker.SingleServiceTracker.SingleServiceListener
serviceReplaced
public void serviceReplaced()
- Specified by:
serviceReplaced in interface org.apache.aries.util.tracker.SingleServiceTracker.SingleServiceListener
Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.