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