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

Support for @Lookup methods within @Configuration classes [SPR-15316] #19879

Closed
spring-issuemaster opened this issue Mar 6, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@spring-issuemaster
Copy link
Collaborator

commented Mar 6, 2017

Sandu Turcan opened SPR-15316 and commented

I have two config classes: MainConfig and ConfigExt.
MainConfig imports ConfigExt, and I would like a concise way of referencing ConfigExt from it.
I'm trying to use @Lookup, but it doesn't work in this case.
I have a sample project here:
https://github.com/idlsoft/spring-lookup
and a PR, which I believe will fix the issue here:
#919


Affects: 4.3.6

Referenced from: commits fc2e635, 77c771e

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

commented Mar 7, 2017

Juergen Hoeller commented

Good catch! It took a bit more to fix this (conditionally calling setBeanFactory in such a multi-CGLIB subclass hierarchy) but you were spot on in terms of direction here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.