Interface ResourceProvider<T>
- Type Parameters:
T
-
- All Known Subinterfaces:
JDBCConnectionProvider
,JPAEntityManagerProvider
@ConsumerType
public interface ResourceProvider<T>
A resource provider is used to provide a transactional resource to the
application
-
Method Summary
Modifier and TypeMethodDescriptiongetResource
(TransactionControl txControl) Get a resource which will associate with the current transaction context when used
-
Method Details
-
getResource
Get a resource which will associate with the current transaction context when used- Parameters:
txControl
-- Returns:
- The resource which will participate in the current transaction
- Throws:
TransactionException
- if the resource cannot be registered with the transaction
-