mockspresso-reflect / com.episode6.hackit.mockspresso.reflect

Package com.episode6.hackit.mockspresso.reflect

Types

AnnotationLiteral

abstract class AnnotationLiteral<T : Annotation!> : Serializable

Supports inline instantiation of annotation type instances.

DependencyKey

class DependencyKey<V : Any!>

Key used to identify objects and dependencies

NamedAnnotationLiteral

open class NamedAnnotationLiteral : AnnotationLiteral<Named!>, Named

A convenience annotation literal for the @Named annotation.

ReflectUtil

open class ReflectUtil

Java reflect utils

Functions

dependencyKey

fun <T : Any> dependencyKey(qualifier: Annotation? = null): DependencyKey<T>

Creates a DependencyKey for T with the provided qualifier annotation

typeToken

fun <T : Any> typeToken(): TypeToken<T>

Creates a TypeToken for T