Hi! We're looking for a code example to scope a de...
# kodein
c
Hi! We're looking for a code example to scope a dependency to a Jetty request. At the moment we're using the following code (using
HK2
):
Copy code
bindFactory(ConnectionFactory::class.java).to(DBConnection::class.java).`in`(RequestScoped::class.java)
We've been reading the documentation, but having a working example would speed things up for us. Does anyone have one at hand? Thanks!