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

io.datakernel.di.annotation.Named 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.annotation;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * This is a built-in {@link io.datakernel.di.util.AbstractAnnotation stateful} {@link io.datakernel.di.core.Name name} annotation.
 * 

* It is used for quick prototyping or when you need too many different keys with the same type. *

* If you have only few distinct groups of objects with the same type, consider making your own {@link NameAnnotation name annotations}. */ @NameAnnotation @Target({FIELD, PARAMETER, METHOD}) @Retention(RUNTIME) public @interface Named { String value(); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy