Skip to content

Add support for method based injection. #66

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

Merged
merged 1 commit into from
Nov 1, 2020

Conversation

norrisjeremy
Copy link
Contributor

This is a missing feature I stumbled across when attempting to convert a project from Guice, which supports @Inject on methods.
I tweaked a few classes in the inject-test module to use method injection instead of field injection and the unit tests all still passed.
I also examined the generated code and it seemed correct to me, so hopefully I didn't miss anything.

@rbygrave
Copy link
Contributor

rbygrave commented Nov 1, 2020

Cool. Looks good.

@rbygrave rbygrave added the enhancement New feature or request label Nov 1, 2020
@rbygrave rbygrave added this to the 2.1 milestone Nov 1, 2020
@rbygrave rbygrave merged commit d3be768 into avaje:master Nov 1, 2020
@norrisjeremy norrisjeremy deleted the method-inject branch November 2, 2020 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants