public class Ejb3TransactionAnnotationParser extends Object implements TransactionAnnotationParser, Serializable
TransactionAttribute
annotation.Constructor and Description |
---|
Ejb3TransactionAnnotationParser() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
int |
hashCode() |
TransactionAttribute |
parseTransactionAnnotation(AnnotatedElement element)
Parse the transaction attribute for the given method or class,
based on an annotation type understood by this parser.
|
TransactionAttribute |
parseTransactionAnnotation(TransactionAttribute ann) |
@Nullable public TransactionAttribute parseTransactionAnnotation(AnnotatedElement element)
TransactionAnnotationParser
This essentially parses a known transaction annotation into Spring's metadata
attribute class. Returns null
if the method/class is not transactional.
parseTransactionAnnotation
in interface TransactionAnnotationParser
element
- the annotated method or classnull
if none foundAnnotationTransactionAttributeSource.determineTransactionAttribute(java.lang.reflect.AnnotatedElement)
public TransactionAttribute parseTransactionAnnotation(TransactionAttribute ann)