Commit 51f14ef073b7957374f2bf04bb503c3d3f9ce6d1

Authored by Emerson Oliveira
2 parents fc362946 bac46fcf
Exists in master

Merge branch '2.4.0' of git@github.com:demoiselle/framework.git into 2.4.0

impl/core/src/main/java/br/gov/frameworkdemoiselle/transaction/TransactionalInterceptor.java
... ... @@ -96,6 +96,17 @@ public class TransactionalInterceptor implements Serializable {
96 96 return this.transactionInfo;
97 97 }
98 98  
  99 + /**
  100 + * <p>Manages methods annotated with {@link Transactional}. If there's no active transaction
  101 + * the moment a {@link Transactional} method is called, this interceptor will activate one. If a {@link Transactional} method
  102 + * that activated a transaction returns, this method will commit the active transaction. If the {@link Transactional} method
  103 + * throws an exception caught outside of the method (or uncaught), this interceptor will mark the transaction for rollback.</p>
  104 + *
  105 + * <p>
  106 + * This method is not intended to be called directly, instead the CDI provider will call this method when a {@link Transactional} method
  107 + * is called.
  108 + * </p>
  109 + */
99 110 @AroundInvoke
100 111 public Object manage(final InvocationContext ic) throws Exception {
101 112 initiate();
... ...