BeanDefinitionDecorators
wishing to add an interceptor
to the resulting bean.
This base class controls the creation of the ProxyFactoryBean bean definition
and wraps the original as an inner-bean definition for the target property
of ProxyFactoryBean.
Chaining is correctly handled, ensuring that only one ProxyFactoryBean definition
is created. If a previous org.
already created the org. then the
interceptor is simply added to the existing definition.
Subclasses have only to create the BeanDefinition to the interceptor that
they wish to add.
org.aopalliance.intercept.MethodInterceptor
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| protected abstract BeanDefinition | createInterceptorDefinition(Node node)
Subclasses should implement this method to return the |
| public final BeanDefinitionHolder | decorate(Node node, BeanDefinitionHolder definitionHolder, ParserContext parserContext)
Implements org. Node (either an element or an attribute) and decorate
the supplied org.,
returning the decorated definition.
|
| protected String | |
| private boolean |
| AbstractInterceptorDrivenBeanDefinitionDecorator | back to summary |
|---|---|
| public AbstractInterceptorDrivenBeanDefinitionDecorator() | |
| addInterceptorNameToList | back to summary |
|---|---|
private void addInterceptorNameToList(String interceptorName, BeanDefinition beanDefinition)
| |
| createInterceptorDefinition | back to summary |
|---|---|
| protected abstract BeanDefinition createInterceptorDefinition(Node node) Subclasses should implement this method to return the | |
| decorate | back to summary |
|---|---|
| public final BeanDefinitionHolder decorate(Node node, BeanDefinitionHolder definitionHolder, ParserContext parserContext) Implements org. Doc from org. Parse the specified Implementations may choose to return a completely new definition, which will
replace the original definition in the resulting
The supplied
| |
| getInterceptorNameSuffix | back to summary |
|---|---|
| protected String getInterceptorNameSuffix(BeanDefinition interceptorDefinition) | |
| isProxyFactoryBeanDefinition | back to summary |
|---|---|
| private boolean isProxyFactoryBeanDefinition(BeanDefinition existingDefinition) | |