Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.api
Class TransactionalCoreSessionWrapper

java.lang.Object
  extended by org.nuxeo.ecm.core.api.TransactionalCoreSessionWrapper
All Implemented Interfaces:
InvocationHandler, Synchronization

public class TransactionalCoreSessionWrapper
extends Object
implements InvocationHandler, Synchronization

Wrapper around a CoreSession that gives it transactional behavior.

Transactional behavior:


Method Summary
 void afterCompletion(int status)
           
 void beforeCompletion()
           
 Object invoke(Object proxy, Method method, Object[] args)
           
 String toString()
           
static CoreSession wrap(CoreSession session)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

wrap

public static CoreSession wrap(CoreSession session)

invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] args)
              throws Throwable
Specified by:
invoke in interface InvocationHandler
Throws:
Throwable

beforeCompletion

public void beforeCompletion()
Specified by:
beforeCompletion in interface Synchronization

afterCompletion

public void afterCompletion(int status)
Specified by:
afterCompletion in interface Synchronization

toString

public String toString()
Overrides:
toString in class Object

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.