Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.runtime.transaction
Class TransactedInstanceHandler<T>

java.lang.Object
  extended by org.nuxeo.runtime.transaction.TransactedInstanceHandler<T>
Type Parameters:
T -
All Implemented Interfaces:
InvocationHandler

public class TransactedInstanceHandler<T>
extends Object
implements InvocationHandler

Start a user transaction if method or class is annotated for and if there is no transaction active

Author:
matic

Method Summary
 Object invoke(Object proxy, Method method, Object[] args)
           
static
<T> T
newProxy(T object, Class<T> itf)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newProxy

public static <T> T newProxy(T object,
                             Class<T> itf)

invoke

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

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.