io.datakernel.di.annotation.Named Maven / Gradle / Ivy
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