|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.context.annotation.AutoProxyRegistrar
public class AutoProxyRegistrar
Registers an auto proxy creator against the current BeanDefinitionRegistry
as appropriate based on an @Enable*
annotation having mode
and
proxyTargetClass
attributes set to the correct values.
EnableAspectJAutoProxy
Field Summary | |
---|---|
private Log |
logger
|
Constructor Summary | |
---|---|
AutoProxyRegistrar()
|
Method Summary | |
---|---|
void |
registerBeanDefinitions(AnnotationMetadata importingClassMetadata,
BeanDefinitionRegistry registry)
Register, escalate, and configure the standard auto proxy creator (APC) against the given registry. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final Log logger
Constructor Detail |
---|
public AutoProxyRegistrar()
Method Detail |
---|
public void registerBeanDefinitions(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry)
@Configuration
class that has both mode
and proxyTargetClass
attributes. If mode
is set to PROXY
, the APC is registered; if
proxyTargetClass
is set to true
, then the APC is forced to use
subclass (CGLIB) proxying.
Several @Enable*
annotations expose both mode
and
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 mode
and
proxyTargetClass
attributes, the APC can be registered and configured all
the same.
registerBeanDefinitions
in interface ImportBeanDefinitionRegistrar
importingClassMetadata
- annotation metadata of the importing classregistry
- current bean definition registry
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |