Class SpringTransactionAnnotationParser
- java.lang.Object
- org.springframework.transaction.annotation.SpringTransactionAnnotationParser
- All Implemented Interfaces:
Serializable,TransactionAnnotationParser
public class SpringTransactionAnnotationParser extends Object implements TransactionAnnotationParser, Serializable
Strategy implementation for parsing Spring'sTransactionalannotation.- Since:
- 2.5
- Author:
- Juergen Hoeller
- See Also:
- Serialized Form
Constructor Summary
Constructors Constructor Description SpringTransactionAnnotationParser()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)inthashCode()TransactionAttributeparseTransactionAnnotation(AnnotatedElement element)Parse the transaction attribute for the given method or class, based on an annotation type understood by this parser.protected TransactionAttributeparseTransactionAnnotation(AnnotationAttributes attributes)TransactionAttributeparseTransactionAnnotation(Transactional ann)
Constructor Detail
SpringTransactionAnnotationParser
public SpringTransactionAnnotationParser()
Method Detail
parseTransactionAnnotation
public TransactionAttribute parseTransactionAnnotation(AnnotatedElement element)
Description copied from interface:TransactionAnnotationParserParse 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
nullif the method/class is not transactional.- Specified by:
parseTransactionAnnotationin interfaceTransactionAnnotationParser- Parameters:
element- the annotated method or class- Returns:
- the configured transaction attribute, or
nullif none found - See Also:
AnnotationTransactionAttributeSource.determineTransactionAttribute(java.lang.reflect.AnnotatedElement)
parseTransactionAnnotation
public TransactionAttribute parseTransactionAnnotation(Transactional ann)
parseTransactionAnnotation
protected TransactionAttribute parseTransactionAnnotation(AnnotationAttributes attributes)