Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not auto-start FactoryBean if it implements SmartLifecycle [SPR-6545] #11211

Closed
spring-projects-issues opened this issue Dec 10, 2009 · 2 comments
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: bug A general bug
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Dec 10, 2009

Liu, Yinwei David opened SPR-6545 and commented

It looks like the latest snapshot of Spring change the way it gets Bean in DefaultLifecycleProcessor.
In 3.0.rc3, all FactoryBean itself which implements SmartLifecycle will get auto-started. However, the FactoryBean itself is not started by Spring in the latest snapshot.


Affects: 3.0 RC3

Issue Links:

Referenced from: commits 9d2f793, 42c7be4, a0c4d2c

@spring-projects-issues
Copy link
Collaborator Author

Juergen Hoeller commented

Fixed for 3.0 GA through a refined lookup of both SmartLifecycle beans and already initialized Lifecycle singletons (which includes FactoryBean instances).

Would be great if you could give the latest snapshot a try tomorrow...

Juergen

@spring-projects-issues
Copy link
Collaborator Author

Liu, Yinwei David commented

Thanks Juergen.
It works perfectly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: bug A general bug
Projects
None yet
Development

No branches or pull requests

2 participants