|
||||||||||
| 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.interceptor.AttributesTransactionAttributeSource
public class AttributesTransactionAttributeSource
Implementation of the TransactionAttributeSource interface that reads
metadata via Spring's Attributes abstraction.
Typically used for reading in source-level attributes via Commons Attributes.
Attributes,
CommonsAttributes| Field Summary |
|---|
| Fields inherited from class org.springframework.transaction.interceptor.AbstractFallbackTransactionAttributeSource |
|---|
logger |
| Constructor Summary | |
|---|---|
AttributesTransactionAttributeSource()
Create a new AttributesTransactionAttributeSource. |
|
AttributesTransactionAttributeSource(Attributes attributes)
Create a new AttributesTransactionAttributeSource. |
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
Invoked by a BeanFactory after it has set all bean properties supplied (and satisfied BeanFactoryAware and ApplicationContextAware). |
boolean |
equals(Object other)
|
protected TransactionAttribute |
findTransactionAttribute(Class clazz)
Subclasses need to implement this to return the transaction attribute for the given class, if any. |
protected TransactionAttribute |
findTransactionAttribute(Collection atts)
Return the transaction attribute, given this set of attributes attached to a method or class. |
protected TransactionAttribute |
findTransactionAttribute(Method method)
Subclasses need to implement this to return the transaction attribute for the given method, if any. |
int |
hashCode()
|
void |
setAttributes(Attributes attributes)
Set the Attributes implementation to use. |
| Methods inherited from class org.springframework.transaction.interceptor.AbstractFallbackTransactionAttributeSource |
|---|
allowPublicMethodsOnly, getCacheKey, getTransactionAttribute |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AttributesTransactionAttributeSource()
setAttributes(org.springframework.metadata.Attributes)public AttributesTransactionAttributeSource(Attributes attributes)
attributes - the Attributes implementation to useCommonsAttributes| Method Detail |
|---|
public void setAttributes(Attributes attributes)
CommonsAttributespublic void afterPropertiesSet()
InitializingBeanThis method allows the bean instance to perform initialization only possible when all bean properties have been set and to throw an exception in the event of misconfiguration.
afterPropertiesSet in interface InitializingBeanprotected TransactionAttribute findTransactionAttribute(Method method)
AbstractFallbackTransactionAttributeSource
findTransactionAttribute in class AbstractFallbackTransactionAttributeSourcemethod - the method to retrieve the attribute for
null if none)protected TransactionAttribute findTransactionAttribute(Class clazz)
AbstractFallbackTransactionAttributeSource
findTransactionAttribute in class AbstractFallbackTransactionAttributeSourceclazz - the class to retrieve the attribute for
null if none)protected TransactionAttribute findTransactionAttribute(Collection atts)
Protected rather than private as subclasses may want to customize how this is done: for example, returning a TransactionAttribute affected by the values of other attributes.
This implementation takes into account RollbackRuleAttributes, if the TransactionAttribute is a RuleBasedTransactionAttribute.
atts - attributes attached to a method or class (may be null)
null if none was foundpublic boolean equals(Object other)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||