io.datakernel.di.core.BindingGenerator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of datakernel-di Show documentation
Show all versions of datakernel-di Show documentation
DataKernel has an extremely lightweight DI with ground-breaking design principles.
It supports nested scopes, singletons, object factories, modules and plugins which
allow to transform graph of dependencies at startup time without any reflection.
The newest version!
package io.datakernel.di.core;
import io.datakernel.di.impl.BindingLocator;
import io.datakernel.di.util.Types;
import org.jetbrains.annotations.Nullable;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
import static java.util.stream.Collectors.toSet;
/**
* This is a function that can try to generate a missing dependency binding when
* {@link Injector} compiles the final binding graph trie.
*
* An example of such function could be {@link io.datakernel.di.util.ReflectionUtils#generateImplicitBinding the injection DSL}.
*
* @see Injector#compile
*/
@FunctionalInterface
public interface BindingGenerator {
BindingGenerator
© 2015 - 2025 Weber Informatics LLC | Privacy Policy