public class AutoProxyRegistrar extends Object implements ImportBeanDefinitionRegistrar
BeanDefinitionRegistryas appropriate based on an
proxyTargetClassattributes set to the correct values.
|Constructor and Description|
|Modifier and Type||Method and Description|
Register, escalate, and configure the standard auto proxy creator (APC) against the given registry.
public void registerBeanDefinitions(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry)
@Configurationclass that has both
modeis set to
PROXY, the APC is registered; if
proxyTargetClassis set to
true, then the APC is forced to use subclass (CGLIB) proxying.
@Enable* annotations expose both
proxyTargetClass attributes. It is important to note that most of these
capabilities end up sharing a single APC. For this reason, this implementation doesn't "care" exactly which
annotation it finds -- as long as it exposes the right
proxyTargetClass attributes, the APC can be registered and configured all