mockspresso-basic-plugins / com.episode6.hackit.mockspresso.basic.plugin.javax / JavaxInjectionConfig

JavaxInjectionConfig

open class JavaxInjectionConfig : InjectionConfig

An implementation of InjectionConfig designed for the javax.inject package. With this config, we look for the constructor annotated with @Inject, and prefer it. If no @Inject constructor is found, we will use and empty constructor, if one is found. If multiple @Inject constructors are found, an exception will be thrown.

Constructors

<init>

JavaxInjectionConfig()

An implementation of InjectionConfig designed for the javax.inject package. With this config, we look for the constructor annotated with @Inject, and prefer it. If no @Inject constructor is found, we will use and empty constructor, if one is found. If multiple @Inject constructors are found, an exception will be thrown.

Functions

provideConstructorSelector

open fun provideConstructorSelector(): ConstructorSelector

provideInjectableFieldAnnotations

open fun provideInjectableFieldAnnotations(): MutableList<Class<out Annotation!>!>

provideInjectableMethodAnnotations

open fun provideInjectableMethodAnnotations(): MutableList<Class<out Annotation!>!>