@@ -0,0 +1,2124 @@
+/*%0A * The Spring Framework is published under the terms%0A * of the Apache Software License.%0A */%0Apackage org.springframework.transaction.interceptor;%0A%0Aimport org.aopalliance.intercept.MethodInvocation;%0A%0A/**%0A * Very simple implementation of TransactionAttributeSource which will always return%0A * the same TransactionAttribute for all methods fed to it. The TransactionAttribute%0A * may be specified, but will otherwise default to PROPOGATION_REQUIRED. This may be%0A * used in the cases where you want to use the same transaction attribute with all%0A * methods being handled by a transaction interceptor.%0A *%0A * @author Colin Sampaleanu%0A * @since 15.10.2003%0A * @version $Id: MatchAlwaysTransactionAttributeSource.java,v 1.1 2003-10-15 22:30:09 colins Exp $%0A * @see org.springframework.transaction.interceptor.TransactionProxyFactoryBean%0A * @see org.springframework.aop.framework.support.BeanNameAutoProxyCreator%0A */%0Apublic class MatchAlwaysTransactionAttributeSource implements TransactionAttributeSource %7B%0A  %0A%09TransactionAttribute _transactionAttribute;%0A%0A%09/**%0A%09 * Creates an instance. Will default to PROPOGATION_REQUIRED, which may be overriden%0A%09 * by calling %7B@link setTransactionAttribute%7D.%0A%09 */%0A%09public MatchAlwaysTransactionAttributeSource() %7B%0A%09%09setTransactionAttribute(%22PROPAGATION_REQUIRED%22);%0A%09%7D%0A%0A%09/**%0A%09 * Allows a transaction attribute to be specified, using the String form, for%0A%09 * example, %22PROPOGATION_REQUIRED%22.%0A%09 * @param transactionAttribute The String form of the transactionAttribute to use.%0A%09 * @see org.springframework.transaction.interceptor.TransactionAttributeEditor%0A%09 */%0A%09public void setTransactionAttribute(String transactionAttribute) %7B%0A%09%09TransactionAttributeEditor tae = new TransactionAttributeEditor();%0A%09%09tae.setAsText(transactionAttribute);%0A%09%09_transactionAttribute = (TransactionAttribute) tae.getValue();%0A%09%7D%0A%0A%09/* (non-Javadoc)%0A%09 * @see org.springframework.transaction.interceptor.TransactionAttributeSource#getTransactionAttribute(org.aopalliance.intercept.MethodInvocation)%0A%09 */%0A%09public TransactionAttribute getTransactionAttribute(MethodInvocation invocation) %7B%0A%09%09return _transactionAttribute;%0A%09%7D%0A%7D%0A

rename MatchAllways... to proper MatchAlways...