(no commit message)
[utils] / test / enterprise / src / main / java / org / wamblee / test / transactions / TransactionResource.java
index 1ab649ab54b3218da7ba6dc37e492f8c551de2ef..4770d78889cfca742f0a579a252cea7d4bb05f9b 100644 (file)
  */
 package org.wamblee.test.transactions;
 
-
 /**
- * Interfaces to be implemented by resources that want to participate in transactions
- * managed through {@link SimpleTransactionManager}.
+ * Interfaces to be implemented by resources that want to participate in
+ * transactions managed through {@link SimpleTransactionManager}.
  * 
  * @author Erik Brakkee
- *
+ * 
  * @param <T>
  */
 public interface TransactionResource<T> {
-    
+
     /**
-     * Begins a transaction. 
+     * Begins a transaction.
+     * 
      * @return Object that manages the transaction for the resource.
      */
-    T begin(); 
-    
+    T begin();
+
     /**
      * Rolls back a transaction.
-     * @param aT Object that manages the transaction for the resource. 
+     * 
+     * @param aT
+     *            Object that manages the transaction for the resource.
      */
-    TransactionResult rollback(T aT); 
-    
+    TransactionResult rollback(T aT);
+
     /**
-     * Commits the transaction. 
-     * @param aT Object that manages the transaction for the resource. 
+     * Commits the transaction.
+     * 
+     * @param aT
+     *            Object that manages the transaction for the resource.
      */
     TransactionResult commit(T aT);
-    
+
 }