?? ResourceProvider<T>

????:
T -
???????:
JDBCConnectionProvider, JPAEntityManagerProvider

@ConsumerType public interface ResourceProvider<T>
A resource provider is used to provide a transactional resource to the application
  • ????

    ??????
    ??
    ??
    Get a resource which will associate with the current transaction context when used
  • ??????

    • getResource

      T getResource(TransactionControl txControl) throws TransactionException
      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