|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.transaction.interceptor.MatchAlwaysTransactionAttributeSource
public class MatchAlwaysTransactionAttributeSource
Very simple implementation of TransactionAttributeSource which will always return the same TransactionAttribute for all methods fed to it. The TransactionAttribute may be specified, but will otherwise default to PROPAGATION_REQUIRED. This may be used in the cases where you want to use the same transaction attribute with all methods being handled by a transaction interceptor.
TransactionProxyFactoryBean
,
BeanNameAutoProxyCreator
,
Serialized FormConstructor Summary | |
---|---|
MatchAlwaysTransactionAttributeSource()
|
Method Summary | |
---|---|
TransactionAttribute |
getTransactionAttribute(Method method,
Class targetClass)
Return the transaction attribute for this method. |
void |
setTransactionAttribute(TransactionAttribute transactionAttribute)
Allows a transaction attribute to be specified, using the String form, for example, "PROPAGATION_REQUIRED". |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MatchAlwaysTransactionAttributeSource()
Method Detail |
---|
public void setTransactionAttribute(TransactionAttribute transactionAttribute)
transactionAttribute
- The String form of the transactionAttribute to use.TransactionAttributeEditor
public TransactionAttribute getTransactionAttribute(Method method, Class targetClass)
TransactionAttributeSource
getTransactionAttribute
in interface TransactionAttributeSource
method
- methodtargetClass
- target class. May be null
, in which case the declaring
class of the method must be used.
null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |