Skip to content

Incorrect example in section 9.9.2 [SPR-11318] #15942

@spring-projects-issues

Description

@spring-projects-issues

Jose Luis Martin opened SPR-11318 and commented

Hi all,

At bottom of section 9.9.2 Using metadata-driven auto-proxying there is the following example:

<bean id="lockMixin" class="org.springframework.aop.LockMixin"
        scope="prototype"/>

<bean id="lockableAdvisor" class="org.springframework.aop.support.DefaultPointcutAdvisor"
        scope="prototype">
    <property name="pointcut" ref="myAttributeAwarePointcut"/>
    <property name="advice" ref="lockMixin"/>
</bean>

<bean id="anyBean" class="anyclass" ...

but

  • DefaultPoincutAdvisor cannot be used with introductions as don't implements IntroductionAdvisor.
  • LockMixin is in test.mixin package.

Best regards


Affects: 3.2.6, 4.0 GA

Referenced from: commits 50dfa03

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions