Skip to content

Allow to specify bean qualifier in an AOP @Around / @Before / ... [SPR-11217] #15842

Closed
@spring-projects-issues

Description

@spring-projects-issues

Francisco Lozano opened SPR-11217 and commented

Right now it's possible to specify bean(beanName), but it'd be great if you could say qualifier(whatever) so that you can wire aspects not only by bean name or by usual AspectJ pointcuts, but also by bean qualifier, so that any bean configured with

@Bean
@Qualifier("audited")
public MyBean myBean() {}

The same cannot be achieved simply with annotations, as annotation is at class-level and not at bean-level (and I can re-use same class in several beans).


Affects: 3.2.5

Issue Links:

Referenced from: commits 214c919

1 votes, 3 watchers

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions