KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > jodd > jtx > JtxResourceManager


1 // Copyright (c) 2003-2007, Jodd Team (jodd.sf.net). All Rights Reserved.
2

3 package jodd.jtx;
4
5 /**
6  * Simple interface for {@link JtxResource} manager. It has to be registered to some {@link JtxTransactionManager}
7  * and used to create new resources for transactions.
8  * Each manager is assigned to a <b>resource type</b> - an uniqe idetifier that
9  * describes global type of the resoruce, for the whole application.
10  */

11 public interface JtxResourceManager {
12
13     /**
14      * Creates new resource.
15      */

16     public JtxResource createResource();
17
18     /**
19      * Returns associated resource type.
20      */

21     public String JavaDoc getResourceType();
22
23     /**
24      * Closes manager.
25      */

26     public void close();
27 }
28
Popular Tags