Hello,
I’m experimenting with Kotlin, Wicket and Guice.
I have a trait implemented by a class (class MyServiceImpl : MyService). I tried to wire this up in my guice module by:
class MyModule : AbstractModule() { protected override fun configure() { bind(javaClass<MyService>).to(javaClass<MyServiceImpl>).in(Scopes.SINGLETON); } }
This causes multiple problems:
- the “to” gets confused with the global “kotlin.to” function, would “import kotlin.to as kotlinTo” solve this?
- the method “in” conflicts with the in-operator in Kotlin, how can I call a java-objects with methods named “in”?
/Tobias W