public class CompositeTransactionAttributeSource extends Object implements TransactionAttributeSource, Serializable
TransactionAttributeSource
implementation that iterates
over a given array of TransactionAttributeSource
instances.Constructor and Description |
---|
CompositeTransactionAttributeSource(TransactionAttributeSource[] transactionAttributeSources)
Create a new CompositeTransactionAttributeSource for the given sources.
|
Modifier and Type | Method and Description |
---|---|
TransactionAttribute |
getTransactionAttribute(Method method,
Class<?> targetClass)
Return the transaction attribute for the given method,
or
null if the method is non-transactional. |
TransactionAttributeSource[] |
getTransactionAttributeSources()
Return the TransactionAttributeSource instances that this
CompositeTransactionAttributeSource combines.
|
public CompositeTransactionAttributeSource(TransactionAttributeSource[] transactionAttributeSources)
transactionAttributeSources
- the TransactionAttributeSource instances to combinepublic final TransactionAttributeSource[] getTransactionAttributeSources()
public TransactionAttribute getTransactionAttribute(Method method, Class<?> targetClass)
TransactionAttributeSource
null
if the method is non-transactional.getTransactionAttribute
in interface TransactionAttributeSource
method
- the method to introspecttargetClass
- the target class. May be null
,
in which case the declaring class of the method must be used.null
if none found