Skip to content

AnnotationBeanConfigurerAspect is created as a singleton and cannot be shared across multiple contexts [SPR-5401] #10074

Closed

Description

@spring-projects-issues

Costin Leau opened SPR-5401 and commented

Reported at:
http://forum.springframework.org/showthread.php?t=59567
http://forum.springframework.org/showthread.php?t=65205

"The aspect "org.springframework.beans.factory.aspectj.Annotat ionBeanConfigurerAspect" is instantiated only once as singleton. Spring calls the setter for the Beanfactory property of the Aspect for each ApplicationContext with context:spring-configured entry. The last one who gets initialized wins. The Beans from the others Contexts can't get initialized."


Affects: 2.5.5

Issue Links:

5 votes, 7 watchers

Activity

  1. spring-projects-issues commented on Jan 26, 2009

    @spring-projects-issues
    CollaboratorAuthor

    Wojciech Durczyński commented

    It's a duplicate of #9829.
    Very important and needed feature.

  2. spring-projects-issues commented on Jul 12, 2009

    @spring-projects-issues
    CollaboratorAuthor

    Ivica Loncar commented

    I have tried to solve this issue. You can see the results at http://forum.springsource.org/showthread.php?p=250184#post250184

    All kudos go to Martin Lippert for suggesting to take a look at ContextFinder.

  3. added
    in: core
    status: duplicate
    type: task
    on Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: corestatus: duplicatetype: task

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions