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

io.datakernel.di.util.Constructors Maven / Gradle / Ivy

Go to download

DataKernel has an extremely lightweight DI with ground-breaking design principles. It supports nested scopes, singletons, object factories, modules and plugins which allow to transform graph of dependencies at startup time without any reflection.

The newest version!
package io.datakernel.di.util;

/**
 * These are just set of functional interfaces to be used by the DSL
 */
public final class Constructors {

	@FunctionalInterface
	public interface Constructor0 {
		R create();
	}

	@FunctionalInterface
	public interface Constructor1 {
		R create(P1 arg1);
	}

	@FunctionalInterface
	public interface Constructor2 {
		R create(P1 arg1, P2 arg2);
	}

	@FunctionalInterface
	public interface Constructor3 {
		R create(P1 arg1, P2 arg2, P3 arg3);
	}

	@FunctionalInterface
	public interface Constructor4 {
		R create(P1 arg1, P2 arg2, P3 arg3, P4 arg4);
	}

	@FunctionalInterface
	public interface Constructor5 {
		R create(P1 arg1, P2 arg2, P3 arg3, P4 arg4, P5 arg5);
	}

	@FunctionalInterface
	public interface Constructor6 {
		R create(P1 arg1, P2 arg2, P3 arg3, P4 arg4, P5 arg5, P6 arg6);
	}

	@FunctionalInterface
	public interface ConstructorN {
		R create(Object... args);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy