All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.amayaframework.di.stub.StubFactory Maven / Gradle / Ivy

Go to download

A framework responsible for monitoring and automating the dependency injection process.

There is a newer version: 2.2.0
Show newest version
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