Interface TransactionAnnotationParser
- All Known Implementing Classes:
Ejb3TransactionAnnotationParser
,JtaTransactionAnnotationParser
,SpringTransactionAnnotationParser
public interface TransactionAnnotationParser
Strategy interface for parsing known transaction annotation types.AnnotationTransactionAttributeSource
delegates to such parsers for supporting specific annotation types such as Spring's ownTransactional
, JTA 1.2'sTransactional
or EJB3'sTransactionAttribute
.- Since:
- 2.5
- Author:
- Juergen Hoeller
- See Also:
AnnotationTransactionAttributeSource
,SpringTransactionAnnotationParser
,Ejb3TransactionAnnotationParser
,JtaTransactionAnnotationParser
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TransactionAttribute
parseTransactionAnnotation(AnnotatedElement element)
Parse the transaction attribute for the given method or class, based on an annotation type understood by this parser.
Method Detail
parseTransactionAnnotation
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
null
if the method/class is not transactional.- Parameters:
element
- the annotated method or class- Returns:
- the configured transaction attribute, or
null
if none found - See Also:
AnnotationTransactionAttributeSource.determineTransactionAttribute(java.lang.reflect.AnnotatedElement)