Interface TransactionMetadataResolver


  • public interface TransactionMetadataResolver
    This interface must be implemented by SeedStack transaction metadata resolvers. These are used by a transaction manager to determine the current transaction behavior.
    • Method Detail

      • resolve

        TransactionMetadata resolve​(org.aopalliance.intercept.MethodInvocation methodInvocation,
                                    TransactionMetadata defaults)
        This method is called for a resolver to resolve transaction metadata. It is given the MethodInvocation object and transaction metadata defaults. If this particular resolver is not concerned by this transaction, it must return null. Otherwise it can specify any resolved metadata as the returned TransactionMetadata object.

        Resolving order is unspecified so resolvers should only return metadata that are specific to them.

        Parameters:
        methodInvocation - the current transaction method interception object.
        defaults - the transaction metadata defaults.
        Returns:
        the resolved transaction metadata attributes as a TransactionMetadata object, null otherwise.