|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.transaction.interceptor.AbstractFallbackTransactionAttributeSource org.springframework.transaction.annotation.AnnotationTransactionAttributeSource
public class AnnotationTransactionAttributeSource
Implementation of TransactionAttributeSource
for working
with transaction metadata in JDK 1.5+ annotation format.
This class reads the JDK 1.5+ Transactional
annotation
and exposes corresponding transaction attributes to Spring's transaction
infrastructure.
This is a direct alternative to AttributesTransactionAttributeSource
,
which is able to read in source-level attributes via Commons Attributes.
Transactional
,
TransactionAspectSupport.setTransactionAttributeSource(org.springframework.transaction.interceptor.TransactionAttributeSource)
,
TransactionProxyFactoryBean.setTransactionAttributeSource(org.springframework.transaction.interceptor.TransactionAttributeSource)
,
AttributesTransactionAttributeSource
,
CommonsAttributes
,
Serialized FormField Summary |
---|
Fields inherited from class org.springframework.transaction.interceptor.AbstractFallbackTransactionAttributeSource |
---|
logger |
Constructor Summary | |
---|---|
AnnotationTransactionAttributeSource()
|
Method Summary | |
---|---|
protected Collection |
findAllAttributes(Class clazz)
Returns all JDK 1.5+ annotations found for the given class. |
protected Collection |
findAllAttributes(Method method)
Returns all JDK 1.5+ annotations found for the given method. |
protected TransactionAttribute |
findTransactionAttribute(Collection atts)
Return the transaction attribute, given this set of attributes attached to a method or class. |
Methods inherited from class org.springframework.transaction.interceptor.AbstractFallbackTransactionAttributeSource |
---|
getCacheKey, getTransactionAttribute |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AnnotationTransactionAttributeSource()
Method Detail |
---|
protected Collection findAllAttributes(Method method)
findAllAttributes
in class AbstractFallbackTransactionAttributeSource
method
- the method to retrieve attributes for
protected Collection findAllAttributes(Class clazz)
findAllAttributes
in class AbstractFallbackTransactionAttributeSource
clazz
- class to retrieve attributes for
protected TransactionAttribute findTransactionAttribute(Collection atts)
findTransactionAttribute
in class AbstractFallbackTransactionAttributeSource
atts
- attributes attached to a method or class. May
be null
, in which case a null TransactionAttribute will be returned.
null
if none was found
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |