Package com.episode6.mockspresso2.plugins.javax.inject.reflect

Types

Link copied to clipboard
typealias JAnnotationMatcher = AnnotatedElement.() -> Boolean
Link copied to clipboard
typealias KAnnotationMatcher = KAnnotatedElement.() -> Boolean
Link copied to clipboard
class MultipleInjectConstructorsException(key: DependencyKey<*>) : AssertionError
Link copied to clipboard
class NoInjectConstructorsException(key: DependencyKey<*>) : AssertionError

Functions

Link copied to clipboard
fun DependencyKey<*>.findExactlyOneInjectConstructor(isInjectConstructor: KAnnotationMatcher = defaultKMatcher): KFunction<*>
Link copied to clipboard
fun javaxRealObjectMaker(    isInjectProperty: KAnnotationMatcher = defaultKMatcher,     isInjectField: JAnnotationMatcher = defaultJMatcher,     isInjectFunction: KAnnotationMatcher = defaultKMatcher,     chooseConstructor: DependencyKey<*>.() -> KFunction<*> = { findExactlyOneInjectConstructor() }): RealObjectMaker

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.