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

Auto-detect @Inject method parameter types #174

Closed
manovotn opened this issue Mar 4, 2024 · 0 comments · Fixed by #172
Closed

Auto-detect @Inject method parameter types #174

manovotn opened this issue Mar 4, 2024 · 0 comments · Fixed by #172

Comments

@manovotn
Copy link
Collaborator

manovotn commented Mar 4, 2024

Created as a tracking issue for #172

Test instances are treated as injection targets and as such can declare an initializer and we will invoke it (InjectionTarget#inject).
The annotation-based approach should therefore scan for these methods and automatically register they parameter types as beans.

Furthermore, the existing code seems to scan for methods annotated with @Inject and registers their return type - this is IMO a bug because those methods are either initializers or annotated c-tors neither of which have return types that should interest the auto-Weld extension.

@manovotn manovotn linked a pull request Mar 4, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant