KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > shark > api > internal > usertransaction > UserTransactionFactory


1 package org.enhydra.shark.api.internal.usertransaction;
2
3 import org.enhydra.shark.api.*;
4 import org.enhydra.shark.api.internal.working.CallbackUtilities;
5
6 /**
7  * UserTransactionFactory interface defines methods for creating UserTransaction.
8  * @author Tanja Jovanovic
9  */

10 public interface UserTransactionFactory {
11    
12    /**
13     * Method configure is called at Shark start up, to configure
14     * implementation of UserTransactionFactory.
15     *
16     * @param cus an instance of CallbackUtilities used to get
17     * properties for configuring user transaction manager and
18     * user transactions in Shark.
19     *
20     * @exception RootException Thrown if configuring doesn't succeed.
21     */

22    void configure (CallbackUtilities cus) throws RootException;
23
24    /**
25     * Creates user transaction.
26     *
27     * @return Created user transaction.
28     *
29     * @exception TransactionException If something unexpected happens.
30     */

31    public UserTransaction createTransaction() throws TransactionException;
32
33 }
34
35
Popular Tags