My Issue
I am migrating from Tapestry IOC to Guice and I would like to for Guice to forward all unresolved injection requests to Tapestry IOC. This works in the individual case for example:
bind(DSLContext::class.java).toProvider (Provider {
tapestryRegistry.getService(DSLContext::class.java)
})
With this, when Guice is asked for a DSLContext it will take the instance constructed by tapestry from the tapestry registry.
My Question
I would like to do this generically, essentially something like Provider.get() except it should be Provider.get(Class). How can I accomplish this with Guice?