Top Description Methods
org.osgi.service.transaction.control

public Interface ResourceProvider<T>

Known Direct Subinterfaces
org.osgi.service.transaction.control.jdbc.JDBCConnectionProvider, org.osgi.service.transaction.control.jpa.JPAEntityManagerProvider
Annotations
@ConsumerType
Imports
org.osgi.annotation.versioning.ConsumerType

A resource provider is used to provide a transactional resource to the application

Method Summary

Modifier and TypeMethod and Description
public T

Returns:

The resource which will participate in the current transaction
getResource
(TransactionControl txControl)

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

Method Detail

getResourceback to summary
public T getResource(TransactionControl txControl) throws TransactionException

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

Returns:T

The resource which will participate in the current transaction

Exceptions
TransactionException:
if the resource cannot be registered with the transaction