public class DefaultTransactionListenerProvider extends Object implements TransactionListenerProvider, Serializable
TransactionListenerProvider.
 
 This implementation just wraps an instance of TransactionListener, always
 providing the same.
| Constructor and Description | 
|---|
| DefaultTransactionListenerProvider(TransactionListener listener)Create a new provider instance from an argument listener. | 
| Modifier and Type | Method and Description | 
|---|---|
| TransactionListener | provide()Provide an  TransactionListenerinstance. | 
| static TransactionListenerProvider[] | providers(TransactionListener... listeners)Convenience method to construct an array of
  DefaultTransactionListenerProviderfrom an array ofTransactionListenerinstances. | 
| String | toString() | 
public DefaultTransactionListenerProvider(TransactionListener listener)
listener - The argument listener.public static TransactionListenerProvider[] providers(TransactionListener... listeners)
DefaultTransactionListenerProvider from an array of
 TransactionListener instances.public final TransactionListener provide()
TransactionListener instance.
 Implementations are free to choose whether this method returns new instances at every call or whether the same instance is returned repetitively.
 A TransactionListener shall be provided exactly once per
 transaction lifecycle, i.e. per call to
 DSLContext.transaction(TransactionalRunnable) or similar API.
provide in interface TransactionListenerProviderTransactionListener instance.TransactionListener, 
TransactionProvider, 
DefaultTransactionListenerProviderCopyright © 2019. All rights reserved.