INNER CODE UNIT · Kotlin
CopySpecs
kosi-libs/Kodein · kodein-di/src/commonMain/kotlin/org/kodein/di/Copy.kt:8
public class CopySpecs(public val all: Boolean) : SearchSpecs()
/**
* Simple interface that returns a the keys to copy from a container.
*/
public interface Copy {
/**
* The keys to copy from the given tree, according to the rules defined in this object.
*
* @param tree The tree that contains bindings to copy.
*/
public fun keySet(tree: DITree): Set<DI.Key<*, *, *>>
/**
* A [Copy] spec that copies all bindings.
*/
public object All: Copy {
override fun keySet(tree: DITree): Set<DI.Key<*, *, *>> = tree.bindings.keys