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
Combine dependency injection and user-supplied arguments to build objects:
trait HttpServer { val name:String = _ val server = bind[Server] .onStart(_.start) .onShutdown(_.close) } val server1 = session.build[HttpServer](name = "server1") val server2 = session.build[HttpServer](name = "server2)
Related: https://github.com/google/guice/wiki/AssistedInject
The text was updated successfully, but these errors were encountered:
Maybe we can use SAM type support in Scala 2.12: http://www.scala-lang.org/news/2.12.0/#lambda-syntax-for-sam-types to embed abstract method
Sorry, something went wrong.
This can be done by using Scala function and implementing SessionHolder
#78: Add a simpler example of assisted injection
bcf6c46
No branches or pull requests
Combine dependency injection and user-supplied arguments to build objects:
Related:
https://github.com/google/guice/wiki/AssistedInject
The text was updated successfully, but these errors were encountered: