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

io.github.amayaframework.di.scheme.AbstractExecutableScheme 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.Executable;
import java.util.Collections;
import java.util.Objects;
import java.util.Set;

abstract class AbstractExecutableScheme
        extends AbstractScheme
        implements ExecutableScheme {
    protected final Set artifacts;
    protected final Artifact[] mapping;

    protected AbstractExecutableScheme(T target, Set artifacts, Artifact[] mapping) {
        super(target);
        this.artifacts = Collections.unmodifiableSet(Objects.requireNonNull(artifacts));
        this.mapping = Objects.requireNonNull(mapping);
    }

    @Override
    public Set getArtifacts() {
        return artifacts;
    }

    @Override
    public Artifact[] getMapping() {
        return mapping.clone();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy