Examples of AnnotationTransactionAttributeSource


Examples of org.springframework.transaction.annotation.AnnotationTransactionAttributeSource

                transactionManager = (PlatformTransactionManager) applicationContext.getBean(this.transactionManagerName);
              } else {
                throw new RuntimeException (String.format("transactionManager property not set and transactionPropertyName %s not found", this.transactionManagerName));
              }
            }
          transactionInterceptor = new TransactionInterceptor(transactionManager, new AnnotationTransactionAttributeSource());
        }
        this.addAdvice(this.transactionInterceptor);
        this.addAdvisor( new DaoMethodsIntroductionAdvisor() );

    }
View Full Code Here

Examples of org.springframework.transaction.annotation.AnnotationTransactionAttributeSource

  @Bean(scope = DefaultScopes.SINGLETON)
  public TransactionInterceptor transactionInterceptor() throws Exception {
    TransactionInterceptor transactionInterceptor = new TransactionInterceptor(
        (PlatformTransactionManager) transactionManager(),
        new AnnotationTransactionAttributeSource());
    return transactionInterceptor;
  }
View Full Code Here

Examples of org.springframework.transaction.annotation.AnnotationTransactionAttributeSource

   * be changed in AbstractFallbackTransactionAttributeSource in Spring proper.
   * @throws SecurityException
   * @throws NoSuchMethodException
   */
  public void testDoesNotResolveTxAnnotationOnMethodFromClassImplementingAnnotatedInterface() throws SecurityException, NoSuchMethodException {
    AnnotationTransactionAttributeSource atas = new AnnotationTransactionAttributeSource();
    Method m = ImplementsAnnotatedInterface.class.getMethod("echo", Throwable.class);
    TransactionAttribute ta = atas.getTransactionAttribute(m, ImplementsAnnotatedInterface.class);
    assertNull(ta);
  }
View Full Code Here

Examples of org.springframework.transaction.annotation.AnnotationTransactionAttributeSource

   * be changed in AbstractFallbackTransactionAttributeSource in Spring proper.
   * @throws SecurityException
   * @throws NoSuchMethodException
   */
  public void testDoesNotResolveTxAnnotationOnMethodFromClassImplementingAnnotatedInterface() throws SecurityException, NoSuchMethodException {
    AnnotationTransactionAttributeSource atas = new AnnotationTransactionAttributeSource();
    Method m = ImplementsAnnotatedInterface.class.getMethod("echo", Throwable.class);
    TransactionAttribute ta = atas.getTransactionAttribute(m, ImplementsAnnotatedInterface.class);
    assertNull(ta);
  }
View Full Code Here

Examples of org.springframework.transaction.annotation.AnnotationTransactionAttributeSource

    public static class SimpleConfiguration extends DalesbredConfigurationSupport {

        @Bean
        @Role(BeanDefinition.ROLE_SUPPORT)
        public TransactionAttributeSource transactionAttributeSource() {
            return new AnnotationTransactionAttributeSource(new DalesbredSpringAnnotationParser());
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.