io.datakernel.di.annotation.ScopeAnnotation 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 java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
/**
* This is a marker meta-annotation that declares an annotation as the one that
* can be used as a {@link io.datakernel.di.core.Scope scope}.
*/
@Retention(RUNTIME)
@Target(ANNOTATION_TYPE)
public @interface ScopeAnnotation {
boolean threadsafe() default true;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy