|
The Spring Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 Form| Field Summary |
|---|
| Fields inherited from class org.springframework.transaction.interceptor.AbstractFallbackTransactionAttributeSource |
|---|
logger |
| Constructor Summary | |
|---|---|
AnnotationTransactionAttributeSource()
|
|
| Method Summary | |
|---|---|
protected boolean |
allowPublicMethodsOnly()
Only public methods can be made transactional using Transactional. |
boolean |
equals(Object other)
|
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. |
int |
hashCode()
|
| Methods inherited from class org.springframework.transaction.interceptor.AbstractFallbackTransactionAttributeSource |
|---|
getCacheKey, getTransactionAttribute |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AnnotationTransactionAttributeSource()
| Method Detail |
|---|
protected Collection findAllAttributes(Method method)
findAllAttributes in class AbstractFallbackTransactionAttributeSourcemethod - the method to retrieve attributes for
protected Collection findAllAttributes(Class clazz)
findAllAttributes in class AbstractFallbackTransactionAttributeSourceclazz - class to retrieve attributes for
protected TransactionAttribute findTransactionAttribute(Collection atts)
findTransactionAttribute in class AbstractFallbackTransactionAttributeSourceatts - attributes attached to a method or class. May
be null, in which case a null TransactionAttribute will be returned.
null if none was foundprotected boolean allowPublicMethodsOnly()
Transactional.
allowPublicMethodsOnly in class AbstractFallbackTransactionAttributeSourcepublic boolean equals(Object other)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
The Spring Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||