fun Builder.automaticProviders(): Builder
Adds a com.episode6.hackit.mockspresso.api.SpecialObjectMaker to handle javax.inject.Providers and automatically pull their dependencies from Mockspresso's dependency map. |
|
fun Builder.injectByJavaxConfig(): Builder
Applies the com.episode6.hackit.mockspresso.api.InjectionConfig for javax.inject based object creation (looks for constructors, fields and methods annotated with @Inject). Also includes special object support for javax.inject.Providers |
|
fun Builder.injectBySimpleConfig(): Builder
Applies the com.episode6.hackit.mockspresso.api.InjectionConfig for simple creation of objects via their shortest constructor. |