|
The Spring Framework | |||||||||
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.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 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. |
int |
hashCode()
|
void |
setAttributes(Attributes attributes)
Set the Attributes implementation to use. |
Methods inherited from class org.springframework.transaction.interceptor.AbstractFallbackTransactionAttributeSource |
---|
allowPublicMethodsOnly, findTransactionAttribute, getCacheKey, getTransactionAttribute |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AttributesTransactionAttributeSource()
public AttributesTransactionAttributeSource(Attributes attributes)
attributes
- the Attributes implementation to useCommonsAttributes
Method Detail |
---|
public void setAttributes(Attributes attributes)
CommonsAttributes
public void afterPropertiesSet()
InitializingBean
This 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 InitializingBean
protected Collection findAllAttributes(Class clazz)
AbstractFallbackTransactionAttributeSource
findAllAttributes
in class AbstractFallbackTransactionAttributeSource
clazz
- class to retrieve attributes for
null
)protected Collection findAllAttributes(Method method)
AbstractFallbackTransactionAttributeSource
findAllAttributes
in class AbstractFallbackTransactionAttributeSource
method
- the method to retrieve attributes for
null
)public boolean equals(Object other)
public int hashCode()
|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |