JxInjector

class JxInjector

Injector that allows to inject instances that use javax.inject.* annotations.

Functions

inject
Link copied to clipboard
fun inject(receiver: Any)

Injects all fields and methods annotated with @Inject in receiver.

newInstance
Link copied to clipboard
inline fun <T : Any> newInstance(injectFields: Boolean = true): T

Creates a new instance of the given type.