Package guru.zoroark.tegral.di.extensions.factory
Types
Link copied to clipboard
class FactoryDeclaration<T : Any>(actualIdentifier: Identifier<T>, makerIdentifier: Identifier<InjectableFactory<T>>) : ResolvableDeclaration<T>
Content copied to clipboard
A declaration that declares a resolver for elements generated by a factory.
Link copied to clipboard
class FactoryResolver<T : Any>(makerIdentifier: Identifier<InjectableFactory<T>>) : IdentifierResolver<T>
Content copied to clipboard
An IdentifierResolver that resolves elements generated by a factory.
Link copied to clipboard
An injectable component whose job is to create components of the same type repeatably.
Link copied to clipboard
Content copied to clipboard
Similar to lazy { }
but uses a property instead of a lambda for building. Inspired by the SYNCHRONIZED
lazy implementation.
Functions
Link copied to clipboard
Content copied to clipboard
DSL for injecting factory-made objects. Usage is factory from scope
.
Link copied to clipboard
inline fun <T : Any> ContextBuilderDsl.putFactory(noinline block: (Any) -> T)
Content copied to clipboard
Allows to put a factory within the module or environment.
Link copied to clipboard
Content copied to clipboard
Utility function that wraps a given property using the given wrapper. This is useful when you want to transform the output of a property in some way.
Link copied to clipboard
Link copied to clipboard
Content copied to clipboard
Wraps a property and maps its result using the given mapper.