org.springframework.scheduling.annotation.AsyncAnnotationBeanPostProcessor Java Examples

The following examples show how to use org.springframework.scheduling.annotation.AsyncAnnotationBeanPostProcessor. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MethodValidationTests.java    From spring-analysis-note with MIT License 5 votes vote down vote up
@Test
public void testMethodValidationPostProcessor() {
	StaticApplicationContext ac = new StaticApplicationContext();
	ac.registerSingleton("mvpp", MethodValidationPostProcessor.class);
	MutablePropertyValues pvs = new MutablePropertyValues();
	pvs.add("beforeExistingAdvisors", false);
	ac.registerSingleton("aapp", AsyncAnnotationBeanPostProcessor.class, pvs);
	ac.registerSingleton("bean", MyValidBean.class);
	ac.refresh();
	doTestProxyValidation(ac.getBean("bean", MyValidInterface.class));
	ac.close();
}
 
Example #2
Source File: MethodValidationTests.java    From spring-analysis-note with MIT License 5 votes vote down vote up
@Test
@SuppressWarnings("unchecked")
public void testMethodValidationPostProcessor() {
	StaticApplicationContext ac = new StaticApplicationContext();
	ac.registerSingleton("mvpp", MethodValidationPostProcessor.class);
	MutablePropertyValues pvs = new MutablePropertyValues();
	pvs.add("beforeExistingAdvisors", false);
	ac.registerSingleton("aapp", AsyncAnnotationBeanPostProcessor.class, pvs);
	ac.registerSingleton("bean", MyValidBean.class);
	ac.refresh();
	doTestProxyValidation(ac.getBean("bean", MyValidInterface.class));
	ac.close();
}
 
Example #3
Source File: MethodValidationTests.java    From java-technology-stack with MIT License 5 votes vote down vote up
@Test
public void testMethodValidationPostProcessor() {
	StaticApplicationContext ac = new StaticApplicationContext();
	ac.registerSingleton("mvpp", MethodValidationPostProcessor.class);
	MutablePropertyValues pvs = new MutablePropertyValues();
	pvs.add("beforeExistingAdvisors", false);
	ac.registerSingleton("aapp", AsyncAnnotationBeanPostProcessor.class, pvs);
	ac.registerSingleton("bean", MyValidBean.class);
	ac.refresh();
	doTestProxyValidation(ac.getBean("bean", MyValidInterface.class));
	ac.close();
}
 
Example #4
Source File: MethodValidationTests.java    From java-technology-stack with MIT License 5 votes vote down vote up
@Test
public void testMethodValidationPostProcessor() {
	StaticApplicationContext ac = new StaticApplicationContext();
	ac.registerSingleton("mvpp", MethodValidationPostProcessor.class);
	MutablePropertyValues pvs = new MutablePropertyValues();
	pvs.add("beforeExistingAdvisors", false);
	ac.registerSingleton("aapp", AsyncAnnotationBeanPostProcessor.class, pvs);
	ac.registerSingleton("bean", MyValidBean.class);
	ac.refresh();
	doTestProxyValidation(ac.getBean("bean", MyValidInterface.class));
	ac.close();
}
 
Example #5
Source File: MethodValidationTests.java    From spring4-understanding with Apache License 2.0 5 votes vote down vote up
@Test
public void testMethodValidationPostProcessor() {
	StaticApplicationContext ac = new StaticApplicationContext();
	ac.registerSingleton("mvpp", MethodValidationPostProcessor.class);
	MutablePropertyValues pvs = new MutablePropertyValues();
	pvs.add("beforeExistingAdvisors", false);
	ac.registerSingleton("aapp", AsyncAnnotationBeanPostProcessor.class, pvs);
	ac.registerSingleton("bean", MyValidBean.class);
	ac.refresh();
	doTestProxyValidation(ac.getBean("bean", MyValidInterface.class));
	ac.close();
}
 
Example #6
Source File: MethodValidationTests.java    From spring4-understanding with Apache License 2.0 5 votes vote down vote up
@Test
public void testMethodValidationPostProcessor() {
	StaticApplicationContext ac = new StaticApplicationContext();
	ac.registerSingleton("mvpp", MethodValidationPostProcessor.class);
	MutablePropertyValues pvs = new MutablePropertyValues();
	pvs.add("beforeExistingAdvisors", false);
	ac.registerSingleton("aapp", AsyncAnnotationBeanPostProcessor.class, pvs);
	ac.registerSingleton("bean", MyValidBean.class);
	ac.refresh();
	doTestProxyValidation(ac.getBean("bean", MyValidInterface.class));
	ac.close();
}
 
Example #7
Source File: ImportAwareTests.java    From spring-analysis-note with MIT License 4 votes vote down vote up
@Bean
public AsyncAnnotationBeanPostProcessor asyncBPP() {
	return new AsyncAnnotationBeanPostProcessor();
}
 
Example #8
Source File: ImportAwareTests.java    From spring-analysis-note with MIT License 4 votes vote down vote up
@Bean
public AsyncAnnotationBeanPostProcessor asyncBPP() {
	return new AsyncAnnotationBeanPostProcessor();
}
 
Example #9
Source File: HttpInvokerFactoryBeanIntegrationTests.java    From spring-analysis-note with MIT License 4 votes vote down vote up
@Bean
public AsyncAnnotationBeanPostProcessor aabpp() {
	return new AsyncAnnotationBeanPostProcessor();
}
 
Example #10
Source File: ImportAwareTests.java    From java-technology-stack with MIT License 4 votes vote down vote up
@Bean
public AsyncAnnotationBeanPostProcessor asyncBPP() {
	return new AsyncAnnotationBeanPostProcessor();
}
 
Example #11
Source File: HttpInvokerFactoryBeanIntegrationTests.java    From java-technology-stack with MIT License 4 votes vote down vote up
@Bean
public AsyncAnnotationBeanPostProcessor aabpp() {
	return new AsyncAnnotationBeanPostProcessor();
}
 
Example #12
Source File: ImportAwareTests.java    From spring4-understanding with Apache License 2.0 4 votes vote down vote up
@Bean
public AsyncAnnotationBeanPostProcessor asyncBPP() {
	return new AsyncAnnotationBeanPostProcessor();
}
 
Example #13
Source File: HttpInvokerFactoryBeanIntegrationTests.java    From spring4-understanding with Apache License 2.0 4 votes vote down vote up
@Bean
public AsyncAnnotationBeanPostProcessor aabpp() {
	return new AsyncAnnotationBeanPostProcessor();
}