AnnotationTransactionAttributeSource delegates to such
parsers for supporting specific annotation types such as Spring's own
Transactional, JTA 1.2's jakarta.transaction.Transactional
or EJB3's jakarta.ejb.TransactionAttribute .
AnnotationTransactionAttributeSource, SpringTransactionAnnotationParser, Ejb3TransactionAnnotationParser, JtaTransactionAnnotationParser
| Modifier and Type | Method and Description |
|---|---|
| public default boolean | Returns: false if the class is known to have no transaction
annotations 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 annotation format of this |
| public TransactionAttribute | Returns: the configured transaction attribute, ornull if none foundthe annotated method or class element)Parse the transaction attribute for the given method or class, based on an annotation type understood by this parser. |
| isCandidateClass | back to summary |
|---|---|
| public default boolean isCandidateClass(Class<?> targetClass) Determine whether the given class is a candidate for transaction attributes
in the annotation format of this If this method returns
| |
| parseTransactionAnnotation | back to summary |
|---|---|
| public TransactionAttribute parseTransactionAnnotation(AnnotatedElement element) Parse the transaction attribute for the given method or class, based on an annotation type understood by this parser. This essentially parses a known transaction annotation into Spring's metadata
attribute class. Returns
| |