public class CompositeTransactionAttributeSource extends java.lang.Object implements TransactionAttributeSource, java.io.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(java.lang.reflect.Method method,
java.lang.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()
@Nullable public TransactionAttribute getTransactionAttribute(java.lang.reflect.Method method, @Nullable java.lang.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