Example usage for org.springframework.transaction.interceptor CompositeTransactionAttributeSource CompositeTransactionAttributeSource

List of usage examples for org.springframework.transaction.interceptor CompositeTransactionAttributeSource CompositeTransactionAttributeSource

Introduction

In this page you can find the example usage for org.springframework.transaction.interceptor CompositeTransactionAttributeSource CompositeTransactionAttributeSource.

Prototype

public CompositeTransactionAttributeSource(TransactionAttributeSource... transactionAttributeSources) 

Source Link

Document

Create a new CompositeTransactionAttributeSource for the given sources.

Usage

From source file:org.springframework.transaction.interceptor.TransactionAspectSupport.java

/**
 * Set multiple transaction attribute sources which are used to find transaction
 * attributes. Will build a CompositeTransactionAttributeSource for the given sources.
 * @see CompositeTransactionAttributeSource
 * @see MethodMapTransactionAttributeSource
 * @see NameMatchTransactionAttributeSource
 * @see org.springframework.transaction.annotation.AnnotationTransactionAttributeSource
 *//*from   w  w w .j  av  a2 s.  c  om*/
public void setTransactionAttributeSources(TransactionAttributeSource... transactionAttributeSources) {
    this.transactionAttributeSource = new CompositeTransactionAttributeSource(transactionAttributeSources);
}