public class MatchAlwaysTransactionAttributeSource extends java.lang.Object implements TransactionAttributeSource, java.io.Serializable
TransactionProxyFactoryBean
,
BeanNameAutoProxyCreator
,
Serialized FormModifier and Type | Field and Description |
---|---|
private TransactionAttribute |
transactionAttribute |
Constructor and Description |
---|
MatchAlwaysTransactionAttributeSource() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
TransactionAttribute |
getTransactionAttribute(java.lang.reflect.Method method,
java.lang.Class<?> targetClass)
Return the transaction attribute for the given method,
or
null if the method is non-transactional. |
int |
hashCode() |
void |
setTransactionAttribute(TransactionAttribute transactionAttribute)
Allows a transaction attribute to be specified, using the String form, for
example, "PROPAGATION_REQUIRED".
|
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isCandidateClass
private TransactionAttribute transactionAttribute
public MatchAlwaysTransactionAttributeSource()
public void setTransactionAttribute(TransactionAttribute transactionAttribute)
transactionAttribute
- the String form of the transactionAttribute to use.TransactionAttributeEditor
@Nullable public TransactionAttribute getTransactionAttribute(java.lang.reflect.Method method, @Nullable java.lang.Class<?> targetClass)
TransactionAttributeSource
null
if the method is non-transactional.getTransactionAttribute
in interface TransactionAttributeSource
method
- the method to introspecttargetClass
- the target class (may be null
,
in which case the declaring class of the method must be used)null
if none foundpublic boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object