salomonbrys
07/03/2016, 5:54 PM3.0.0-beta4
to Maven Central. This is the same as beta3 but with a change in the binding-with-type API. This introduces the same separation of API in Kodein.Builder
than in Kodein
. In a Kodein.Builder
, to bind with a Type
, a TypeToken
or a Class
, you need to access the property typed
. Also, there is now a container
property that allows you to bind directly a Kodein.Key
.
val kodein = Kodein {
typed.bind(type) with ...
container.bind(key) with ...
}