TransactionInterceptor for metadata retrieval.
Implementations know how to source transaction attributes, whether from configuration, metadata attributes at source level (such as annotations), or anywhere else.
TransactionInterceptor#setTransactionAttributeSource, TransactionProxyFactoryBean#setTransactionAttributeSource, org.springframework.transaction.annotation.AnnotationTransactionAttributeSource
| Modifier and Type | Method and Description |
|---|---|
| public TransactionAttribute | Returns: the matching transaction attribute, ornull if none foundthe method to introspect method, Class<?> the target class (may be targetClass)null,
in which case the declaring class of the method must be used)Return the transaction attribute for the given method,
or |
| public default boolean | Returns: false if the class is known to have no transaction
attributes at class or method level; true otherwise. The default
implementation returns true, leading to regular introspection.the class to introspect targetClass)Determine whether the given class is a candidate for transaction attributes
in the metadata format of this |
| getTransactionAttribute | back to summary |
|---|---|
| public TransactionAttribute getTransactionAttribute(Method method, Class<?> targetClass) Return the transaction attribute for the given method,
or
| |
| isCandidateClass | back to summary |
|---|---|
| public default boolean isCandidateClass(Class<?> targetClass) Determine whether the given class is a candidate for transaction attributes
in the metadata format of this If this method returns
| |