spring-framework / org.springframework.aop.config / AopConfigUtils

AopConfigUtils

abstract class AopConfigUtils

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

Only a single auto-proxy creator can be registered yet multiple concrete implementations are available. Therefore this class wraps a simple escalation protocol, allowing classes to request a particular auto-proxy creator and know that class, or a subclass thereof, will eventually be resident in the application context.

Author
Rob Harrop

Author
Juergen Hoeller

Author
Mark Fisher

Since
2.5

See Also
AopNamespaceUtils

Constructors

<init>

AopConfigUtils()

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

Only a single auto-proxy creator can be registered yet multiple concrete implementations are available. Therefore this class wraps a simple escalation protocol, allowing classes to request a particular auto-proxy creator and know that class, or a subclass thereof, will eventually be resident in the application context.

Properties

AUTO_PROXY_CREATOR_BEAN_NAME

static val AUTO_PROXY_CREATOR_BEAN_NAME: String

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

Functions

forceAutoProxyCreatorToExposeProxy

open static fun forceAutoProxyCreatorToExposeProxy(registry: BeanDefinitionRegistry): Unit

forceAutoProxyCreatorToUseClassProxying

open static fun forceAutoProxyCreatorToUseClassProxying(registry: BeanDefinitionRegistry): Unit

registerAspectJAnnotationAutoProxyCreatorIfNecessary

open static fun registerAspectJAnnotationAutoProxyCreatorIfNecessary(registry: BeanDefinitionRegistry): BeanDefinition
open static fun registerAspectJAnnotationAutoProxyCreatorIfNecessary(registry: BeanDefinitionRegistry, source: Any): BeanDefinition

registerAspectJAutoProxyCreatorIfNecessary

open static fun registerAspectJAutoProxyCreatorIfNecessary(registry: BeanDefinitionRegistry): BeanDefinition
open static fun registerAspectJAutoProxyCreatorIfNecessary(registry: BeanDefinitionRegistry, source: Any): BeanDefinition

registerAutoProxyCreatorIfNecessary

open static fun registerAutoProxyCreatorIfNecessary(registry: BeanDefinitionRegistry): BeanDefinition
open static fun registerAutoProxyCreatorIfNecessary(registry: BeanDefinitionRegistry, source: Any): BeanDefinition