?? ResourceProvider<T>
- ????:
T
-
@ConsumerType
public interface ResourceProvider<T>
A resource provider is used to provide a transactional resource to the
application
-
????
??????????getResource
(TransactionControl txControl) Get a resource which will associate with the current transaction context when used
-
??????
-
getResource
Get a resource which will associate with the current transaction context when used- ??:
txControl
-- ??:
- The resource which will participate in the current transaction
- ??:
TransactionException
- if the resource cannot be registered with the transaction
-