io.datakernel.di.annotation.EagerSingleton Maven / Gradle / Ivy
package io.datakernel.di.annotation;
import io.datakernel.di.core.Injector;
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 builtin {@link KeySetAnnotation} that groups together keys
* that will be requested (and their singletons created) on {@link Injector#createEagerSingletons()} call.
*/
@KeySetAnnotation
@Target({FIELD, PARAMETER, METHOD})
@Retention(RUNTIME)
public @interface EagerSingleton {
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy