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

Try to capture context somehow in which a call to configuration takes place #1

Open
ljnelson opened this issue Apr 5, 2017 · 0 comments
Assignees

Comments

@ljnelson
Copy link
Member

ljnelson commented Apr 5, 2017

I have a Configuration annotation, and it is inspected all the way up the injection chain—that is, when a configuration value is requested, the extension checks to see if there is a Configuration annotation on the parameter itself, the containing method, the containing class, and so on.

But what we really need is a way somehow to investigate the calling stack for such properties/annotations. I think this will have to be a programmatic call (unless I can get complicated with a custom Thread-based scope). The general hazy ill-conceived idea is that somewhere in the call, you "mark" the current…thread, I guess, as "belonging" to a particular Configuration (fred, let's say). Then the configuration framework looks up fred.whatever-the-value-name-is.

It would be really cool if we could capture this with annotations (maybe the extension could introspect every bean in the system and somehow detect where this context was set?).

@ljnelson ljnelson self-assigned this Apr 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant