org.springframework.transaction.interceptor

Class CompositeTransactionAttributeSource

  • java.lang.Object
    • org.springframework.transaction.interceptor.CompositeTransactionAttributeSource
    • Constructor Detail

      • CompositeTransactionAttributeSource

        public CompositeTransactionAttributeSource(TransactionAttributeSource[] transactionAttributeSources)
        Create a new CompositeTransactionAttributeSource for the given sources.
        Parameters:
        transactionAttributeSources - the TransactionAttributeSource instances to combine
    • Method Detail

      • getTransactionAttributeSources

        public final TransactionAttributeSource[] getTransactionAttributeSources()
        Return the TransactionAttributeSource instances that this CompositeTransactionAttributeSource combines.
      • getTransactionAttribute

        @Nullable
        public TransactionAttribute getTransactionAttribute(java.lang.reflect.Method method,
                                                                      @Nullable
                                                                      java.lang.Class<?> targetClass)
        Description copied from interface: TransactionAttributeSource
        Return the transaction attribute for the given method, or null if the method is non-transactional.
        Specified by:
        getTransactionAttribute in interface TransactionAttributeSource
        Parameters:
        method - the method to introspect
        targetClass - the target class (may be null, in which case the declaring class of the method must be used)
        Returns:
        the TransactionAttribute the matching transaction attribute, or null if none found