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 Detail

      • getResource

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