winter-java / io.jentz.winter.java / JWinter

JWinter

object JWinter

Functions

instance

fun <R : Any> instance(graph: Graph, type: Class<R>, qualifier: Any? = null): R

instanceOrNull

fun <R : Any> instanceOrNull(graph: Graph, type: Class<R>, qualifier: Any? = null): R?

key

fun <R : Any> key(type: Class<R>, qualifier: Any? = null): TypeKey<R>

Creates a TypeKey with argument type Unit and return type R from a Java class.

provider

fun <R : Any> provider(graph: Graph, type: Class<R>, qualifier: Any? = null): Provider<R>

providerOrNull

fun <R : Any> providerOrNull(graph: Graph, type: Class<R>, qualifier: Any? = null): Provider<R>?