org.nuxeo.ecm.core.api
Class TransactionalCoreSessionWrapper
java.lang.Object
org.nuxeo.ecm.core.api.TransactionalCoreSessionWrapper
- All Implemented Interfaces:
- java.lang.reflect.InvocationHandler, javax.transaction.Synchronization
public class TransactionalCoreSessionWrapper
- extends java.lang.Object
- implements java.lang.reflect.InvocationHandler, javax.transaction.Synchronization
Wrapper around a CoreSession that gives it transactional behavior.
Transactional behavior:
- notifies the event service on transaction start/stop
- throws RollbackException
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
wrap
public static CoreSession wrap(CoreSession session)
invoke
public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
- Specified by:
invoke
in interface java.lang.reflect.InvocationHandler
- Throws:
java.lang.Throwable
beforeCompletion
public void beforeCompletion()
- Specified by:
beforeCompletion
in interface javax.transaction.Synchronization
afterCompletion
public void afterCompletion(int status)
- Specified by:
afterCompletion
in interface javax.transaction.Synchronization
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2010 Nuxeo SAS. All Rights Reserved.