@Interceptor @Transactional public class TransactionalInterceptor extends Object implements Serializable
TransactionStrategy.| Constructor and Description |
|---|
TransactionalInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
Object |
executeInTransaction(javax.interceptor.InvocationContext invocationContext)
Creates a transaction before the intercepted method gets called and commits or reverts it after the invocation.
|
public Object executeInTransaction(javax.interceptor.InvocationContext invocationContext) throws Exception
TransactionStrategy
is allowed to begin the transaction lazily but it has to support nested interceptor calls.invocationContext - current invocation-contextException - exception which might be thrown by the intercepted methodCopyright © 2011-2013 The Apache Software Foundation. All Rights Reserved.