Interface TransactionMetadataResolver
-
public interface TransactionMetadataResolverThis interface must be implemented by SeedStack transaction metadata resolvers. These are used by a transaction manager to determine the current transaction behavior.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TransactionMetadataresolve(org.aopalliance.intercept.MethodInvocation methodInvocation, TransactionMetadata defaults)This method is called for a resolver to resolve transaction metadata.
-
-
-
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 theMethodInvocationobject 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 returnedTransactionMetadataobject.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
TransactionMetadataobject, null otherwise.
-
-