io.datakernel.di.annotation.Export 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.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
/**
* If module provides at least one binding marked as exported then all non-exported bindings
* will be visible only from bindings inside of the module.
* Injector would only be able to retrieve the exported bindings.
*
* If no bindings are exported then all of them are - this is made for backwards-compatibility and simplicity.
* Module that has bindings but exports none of them is useless - binding generators only work with exported (or 'public') bindings.
*/
@Target(METHOD)
@Retention(RUNTIME)
public @interface Export {
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy