Commit 723862d45511031f53ef855f9936b4ee44e1af61

Authored by Dancovich
1 parent 9b0c4238
Exists in master

Adicionada documentação

impl/core/src/main/java/br/gov/frameworkdemoiselle/transaction/TransactionalInterceptor.java
@@ -96,6 +96,17 @@ public class TransactionalInterceptor implements Serializable { @@ -96,6 +96,17 @@ public class TransactionalInterceptor implements Serializable {
96 return this.transactionInfo; 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 @AroundInvoke 110 @AroundInvoke
100 public Object manage(final InvocationContext ic) throws Exception { 111 public Object manage(final InvocationContext ic) throws Exception {
101 initiate(); 112 initiate();