Top Description Fields Constructors Methods
org.springframework.aop.config

public abstract Class AopConfigUtils

extends Object
Class Inheritance
Imports
java.util.ArrayList, .List, org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator, org.springframework.aop.aspectj.autoproxy.AspectJAwareAdvisorAutoProxyCreator, org.springframework.aop.framework.autoproxy.InfrastructureAdvisorAutoProxyCreator, org.springframework.beans.factory.config.BeanDefinition, org.springframework.beans.factory.support.BeanDefinitionRegistry, .RootBeanDefinition, org.springframework.core.Ordered, org.springframework.lang.Nullable, org.springframework.util.Assert

Utility class for handling registration of AOP auto-proxy creators.

Only a single auto-proxy creator should be registered yet multiple concrete implementations are available. This class provides a simple escalation protocol, allowing a caller to request a particular auto-proxy creator and know that creator, or a more capable variant thereof, will be registered as a post-processor.

Authors
Rob Harrop, Juergen Hoeller, Mark Fisher
Since
2.5
See Also
AopNamespaceUtils

Field Summary

Modifier and TypeField and Description
private static final List<Class<?>>
APC_PRIORITY_LIST

Stores the auto proxy creator classes in escalation order.

public static final String
AUTO_PROXY_CREATOR_BEAN_NAME

The bean name of the internally managed auto-proxy creator.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static int
private static int
public static void
public static void
public static BeanDefinition
public static BeanDefinition
public static BeanDefinition
public static BeanDefinition
public static BeanDefinition
public static BeanDefinition
private static BeanDefinition
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

APC_PRIORITY_LISTback to summary
private static final List<Class<?>> APC_PRIORITY_LIST

Stores the auto proxy creator classes in escalation order.

AUTO_PROXY_CREATOR_BEAN_NAMEback to summary
public static final String AUTO_PROXY_CREATOR_BEAN_NAME

The bean name of the internally managed auto-proxy creator.

Constructor Detail

AopConfigUtilsback to summary
public AopConfigUtils()

Method Detail

findPriorityForClassback to summary
private static int findPriorityForClass(Class<?> clazz)
findPriorityForClassback to summary
private static int findPriorityForClass(String className)
forceAutoProxyCreatorToExposeProxyback to summary
public static void forceAutoProxyCreatorToExposeProxy(BeanDefinitionRegistry registry)
forceAutoProxyCreatorToUseClassProxyingback to summary
public static void forceAutoProxyCreatorToUseClassProxying(BeanDefinitionRegistry registry)
registerAspectJAnnotationAutoProxyCreatorIfNecessaryback to summary
public static BeanDefinition registerAspectJAnnotationAutoProxyCreatorIfNecessary(BeanDefinitionRegistry registry)
Annotations
@Nullable
registerAspectJAnnotationAutoProxyCreatorIfNecessaryback to summary
public static BeanDefinition registerAspectJAnnotationAutoProxyCreatorIfNecessary(BeanDefinitionRegistry registry, Object source)
Annotations
@Nullable
registerAspectJAutoProxyCreatorIfNecessaryback to summary
public static BeanDefinition registerAspectJAutoProxyCreatorIfNecessary(BeanDefinitionRegistry registry)
Annotations
@Nullable
registerAspectJAutoProxyCreatorIfNecessaryback to summary
public static BeanDefinition registerAspectJAutoProxyCreatorIfNecessary(BeanDefinitionRegistry registry, Object source)
Annotations
@Nullable
registerAutoProxyCreatorIfNecessaryback to summary
public static BeanDefinition registerAutoProxyCreatorIfNecessary(BeanDefinitionRegistry registry)
Annotations
@Nullable
registerAutoProxyCreatorIfNecessaryback to summary
public static BeanDefinition registerAutoProxyCreatorIfNecessary(BeanDefinitionRegistry registry, Object source)
Annotations
@Nullable
registerOrEscalateApcAsRequiredback to summary
private static BeanDefinition registerOrEscalateApcAsRequired(Class<?> cls, BeanDefinitionRegistry registry, Object source)
Annotations
@Nullable