Package org.springframework.scheduling.annotation

Examples of org.springframework.scheduling.annotation.AsyncAnnotationBeanPostProcessor.postProcessAfterInitialization()


    ConvertingRepository repository = factory.getRepository(ConvertingRepository.class);

    AsyncAnnotationBeanPostProcessor processor = new AsyncAnnotationBeanPostProcessor();
    processor.setBeanFactory(new DefaultListableBeanFactory());
    repository = (ConvertingRepository) processor.postProcessAfterInitialization(repository, null);

    Future<Object> future = repository.findByFirstname("Foo");

    assertThat(future.isDone(), is(false));
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.