Package-level declarations

Types

Link copied to clipboard

Marker annotation for the Fundef feature.

Link copied to clipboard
data class FunctionQualifier<R>(val function: KFunction<R>) : Qualifier

Qualifier for components that depend on a function. This is mainly for use with fundefs with components of type FundefFunctionWrapper

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.FUNCTION])
annotation class Fundef

When used on a function, allows to use put on the function instead of putFundef.

Link copied to clipboard
class FundefConfigureDsl<R>(val function: KFunction<R>)

DSL object, for use with configureFundef. Provides functions to further configure fundefs.

Link copied to clipboard
class FundefException(message: String, cause: Throwable? = null) : TegralDiException

Exception type for anything that has to do with fundefs.

Link copied to clipboard
class FundefFunctionWrapper<R>(scope: InjectionScope, function: KFunction<R>, qualifiers: Map<String, Qualifier>)

Wrapper class for function definitions (fundefs).

Functions

Link copied to clipboard

Configure a fundef by providing additional qualifiers for the underlying function's parameters. Here's an example of what that looks like:

Link copied to clipboard

Retrieve the fundef wrapper for the given function, or throw an exception if no such fundef could be found.

Link copied to clipboard
fun <R> ofFunction(function: KFunction<R>): Qualifier

Creator DSL-ish function for FunctionQualifier.

Link copied to clipboard

Add a function definition to this environment for the given function, with its configuration.

Add a function definition to this environment for the given function.

Add a function definition to this environment for the given function and qualifier.