org.springframework.aop.aspectj.autoproxy.AspectJAwareAdvisorAutoProxyCreator Java Examples

The following examples show how to use org.springframework.aop.aspectj.autoproxy.AspectJAwareAdvisorAutoProxyCreator. 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: AspectsAutoConfigurationTest.java    From genie with Apache License 2.0 5 votes vote down vote up
/**
 * Make sure all the expected beans are created by the auto configuration.
 */
@Test
void expectedBeansCreated() {
    this.contextRunner.run(
        context -> {
            Assertions.assertThat(context).hasSingleBean(DataServiceRetryProperties.class);
            Assertions.assertThat(context).hasSingleBean(AspectJAwareAdvisorAutoProxyCreator.class);
            Assertions.assertThat(context).hasSingleBean(DataServiceRetryAspect.class);
            Assertions.assertThat(context).hasSingleBean(HealthCheckMetricsAspect.class);
            Assertions.assertThat(context).hasSingleBean(SystemArchitecture.class);
        }
    );
}
 
Example #2
Source File: AopConfigUtils.java    From spring-analysis-note with MIT License 4 votes vote down vote up
@Nullable
public static BeanDefinition registerAspectJAutoProxyCreatorIfNecessary(
		BeanDefinitionRegistry registry, @Nullable Object source) {

	return registerOrEscalateApcAsRequired(AspectJAwareAdvisorAutoProxyCreator.class, registry, source);
}
 
Example #3
Source File: AopConfigUtils.java    From java-technology-stack with MIT License 4 votes vote down vote up
@Nullable
public static BeanDefinition registerAspectJAutoProxyCreatorIfNecessary(
		BeanDefinitionRegistry registry, @Nullable Object source) {

	return registerOrEscalateApcAsRequired(AspectJAwareAdvisorAutoProxyCreator.class, registry, source);
}
 
Example #4
Source File: AopConfigUtils.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
public static BeanDefinition registerAspectJAutoProxyCreatorIfNecessary(BeanDefinitionRegistry registry, Object source) {
	return registerOrEscalateApcAsRequired(AspectJAwareAdvisorAutoProxyCreator.class, registry, source);
}
 
Example #5
Source File: AopConfigUtils.java    From spring4-understanding with Apache License 2.0 4 votes vote down vote up
public static BeanDefinition registerAspectJAutoProxyCreatorIfNecessary(BeanDefinitionRegistry registry, Object source) {
	return registerOrEscalateApcAsRequired(AspectJAwareAdvisorAutoProxyCreator.class, registry, source);
}