yccheng
streetsofboston
val kodein = Kodein { bind<SomeConnectionPool>() with provider { SomeConnectionPool.obtain() } // closeables bind<SomeResource>() with provider { SomeResource.obtain() } // closables bind<SomeService>() with singleton { SomeService(provider()) } bind<SomeOtherService>() with singleton { SomeOtherService(provider()) } }
obtain()
A modern programming language that makes developers happier.