Package com.episode6.mockspresso2.plugins.javax.inject.reflect
Types
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class MultipleInjectConstructorsException(key: DependencyKey<*>) : AssertionError
Content copied to clipboard
Link copied to clipboard
class NoInjectConstructorsException(key: DependencyKey<*>) : AssertionError
Content copied to clipboard
Functions
Link copied to clipboard
fun DependencyKey<*>.findExactlyOneInjectConstructor(isInjectConstructor: KAnnotationMatcher = defaultKMatcher): KFunction<*>
Content copied to clipboard
Link copied to clipboard
fun javaxRealObjectMaker( isInjectProperty: KAnnotationMatcher = defaultKMatcher, isInjectField: JAnnotationMatcher = defaultJMatcher, isInjectFunction: KAnnotationMatcher = defaultKMatcher, chooseConstructor: DependencyKey<*>.() -> KFunction<*> = { findExactlyOneInjectConstructor() }): RealObjectMaker
Content copied to clipboard
Returns an RealObjectMaker that uses reflection to create real objects according to javax inject rules. Objects must have a single Injectable constructor and supports field/property and method injection.