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

io.github.amayaframework.di.scheme.MethodScheme 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.scheme;

import io.github.amayaframework.di.Artifact;

import java.lang.reflect.Method;
import java.util.Arrays;
import java.util.Set;

/**
 * A scheme that defines the correspondence between set of artifacts and class method.
 */
public final class MethodScheme extends AbstractExecutableScheme {

    /**
     * Constructs method scheme for specified method, artifact set and its mapping.
     *
     * @param target    the specified method, must be non-null
     * @param artifacts the artifact set, must be non-null
     * @param mapping   the artifact mapping, must be non-null
     */
    public MethodScheme(Method target, Set artifacts, Artifact[] mapping) {
        super(target, artifacts, mapping);
    }

    @Override
    public String toString() {
        return "MethodScheme{" +
                "artifacts=" + artifacts +
                ", mapping=" + Arrays.toString(mapping) +
                ", target=" + target +
                '}';
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy