public class TransactionalAspect extends Object
| Constructor and Description |
|---|
TransactionalAspect() |
| Modifier and Type | Method and Description |
|---|---|
void |
anyMethod()
Matches any execution of a method
|
Object |
aroundMethodAnnotatedWithTransactional(org.aspectj.lang.ProceedingJoinPoint joinPoint,
Transactional transactional)
If strix is started: Executes around any public method, which is annotated with
Transactional and not
with NoTransaction. |
Object |
aroundMethodNotAnnotatedWithTransactionalInClassAnnotatedWithTransactional(org.aspectj.lang.ProceedingJoinPoint joinPoint,
Transactional transactional)
If strix is started: Executes around any public method, which is not annotated with
Transactional or
NoTransaction, but is part of a class annotated with Transactional. |
static boolean |
isPersistenceStarted()
Checks, if strix is started
|
void |
noTransactionAnnotated()
Matches any method, which is annotated with
NoTransaction |
void |
publicMethod()
Matches any execution of a public method
|
void |
startedAndMethodNotAnnotatedWithNoTransaction()
If strix is started: Matches any method, which is not annotated with
NoTransaction |
void |
startedAndPublicMethodNotAnnotatedWithNoTransaction()
If strix is started: Matches any public method, which is not annotated with
NoTransaction |
void |
transactionalAnnotated()
Matches any method, which is annotated with
Transactional |
public static boolean isPersistenceStarted()
true if it is started, false otherwise.public void publicMethod()
public void anyMethod()
public void noTransactionAnnotated()
NoTransactionpublic void transactionalAnnotated()
Transactionalpublic void startedAndMethodNotAnnotatedWithNoTransaction()
NoTransactionpublic void startedAndPublicMethodNotAnnotatedWithNoTransaction()
NoTransactionpublic Object aroundMethodAnnotatedWithTransactional(org.aspectj.lang.ProceedingJoinPoint joinPoint, Transactional transactional) throws Throwable
Transactional and not
with NoTransaction.joinPoint - The join point of AspectJtransactional - The Transactional annotation of the methodThrowable - If the aspected method throws an exceptionpublic Object aroundMethodNotAnnotatedWithTransactionalInClassAnnotatedWithTransactional(org.aspectj.lang.ProceedingJoinPoint joinPoint, Transactional transactional) throws Throwable
Transactional or
NoTransaction, but is part of a class annotated with Transactional.joinPoint - The join point of AspectJtransactional - The Transactional annotation of the classThrowable - If the aspected method throws an exceptionCopyright © 2017–2018. All rights reserved.