|
||||||||||
| 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). |
protected Collection |
findAllAttributes(Class clazz)
Subclasses should implement this to return all attributes for this class. |
protected Collection |
findAllAttributes(Method method)
Subclasses should implement this to return all attributes for this method. |
void |
setAttributes(Attributes attributes)
Set the Attributes implementation to use. |
| Methods inherited from class org.springframework.transaction.interceptor.AbstractFallbackTransactionAttributeSource |
|---|
findTransactionAttribute, getCacheKey, getTransactionAttribute |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, 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 Collection findAllAttributes(Class clazz)
AbstractFallbackTransactionAttributeSource
findAllAttributes in class AbstractFallbackTransactionAttributeSourceclazz - class to retrieve attributes for
protected Collection findAllAttributes(Method method)
AbstractFallbackTransactionAttributeSource
findAllAttributes in class AbstractFallbackTransactionAttributeSourcemethod - the method to retrieve attributes for
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||