We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Generate the code behind idenfied interfaces to implement Assisted Injection:
public interface Assistant{ Output buildOutput(Value v); } public class Output{ @Inject public Output(@Assissted Value v, SecondInjectedValue v2){...} }
Generated:
public class AssistantImpl{ @inject public AssistantImpl(SecondInjectedValue v2){...} public Output buildOutput(Value v){ return new Output(v, v2); } }
The text was updated successfully, but these errors were encountered:
Assisted Injection is implemented through the Injectors and Binding Qualifiers features:
public interface Assistant{ Output buildOutput(Value v); } public class Output{ @Inject public Output(Value v, SecondInjectedValue v2){...} }
or:
public interface Assistant{ Output buildOutput(@Named("stringOne") Thing one, @Named("ThingTwo") Thing two); } public class Output{ @Inject public Output(@Named("stringOne") Thing one, @Named("ThingTwo") Thing two, SecondInjectedValue v2){...} }
Sorry, something went wrong.
d3ce5dc
johncarl81
No branches or pull requests
Generate the code behind idenfied interfaces to implement Assisted Injection:
Generated:
The text was updated successfully, but these errors were encountered: