org.nuxeo.runtime.transaction
Class TransactedInstanceHandler<T>
java.lang.Object
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
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
Copyright © 2011 Nuxeo SAS. All Rights Reserved.