io.github.amayaframework.di.stub.StubFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of amaya-di Show documentation
Show all versions of amaya-di Show documentation
A framework responsible for monitoring and automating the dependency injection process.
package io.github.amayaframework.di.stub;
import com.github.romanqed.jfunc.Function0;
import io.github.amayaframework.di.Artifact;
import io.github.amayaframework.di.scheme.ClassScheme;
import java.util.function.Function;
/**
* An interface describing an abstract factory that creates
* instantiators based on the passed class schema and dependency provider.
*/
public interface StubFactory {
/**
* Creates an instantiator for the specified class scheme using the specified provider.
*
* @param scheme the specified scheme, must be non-null
* @param provider the specified provider, must be non-null
* @return the created instantiator
*/
Function0> create(ClassScheme scheme, Function> provider);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy