@Documented @Retention(value=RUNTIME) @Target(value=METHOD) public @interface AfterTransaction
TransactionStatus. The transaction status object contains information about the last transaction. Note that this method is both called when a transactional batch was successfully handled, or when an exception occurred during the batch process. In that case, the TransactionStatus will contain information about the failure. The AfterTransaction method is called once for every call to a BeforeTransaction method, regardless of the outcome of a transaction. For each class hierarchy, only a single method annotated with
@AfterTransactionwill be invoked. This is always a method on the most specific class (i.e. subclass) in the hierarchy. If that class contains several annotated methods, the behavior is undefined.
Copyright © 2012. All Rights Reserved.