io.datakernel.di.annotation.ProvidesIntoSet Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of datakernel-di Show documentation
Show all versions of datakernel-di Show documentation
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.annotation;
import io.datakernel.di.core.Multibinder;
import io.datakernel.di.module.AbstractModule;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
/**
* This is a built-in shortcut for {@link Provides provider method} that provides its result as a singleton set
* and adds a {@link Multibinder#toSet() set multibinder} for the provided set key to the module.
*
* @see AbstractModule
*/
@Target(METHOD)
@Retention(RUNTIME)
public @interface ProvidesIntoSet {
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy