io.github.amayaframework.di.Inject Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of amaya-di Show documentation
Show all versions of amaya-di Show documentation
A framework responsible for monitoring and automating the dependency injection process.
package io.github.amayaframework.di;
import java.lang.annotation.*;
/**
* An annotation that is used as a default marker when building a
* {@link io.github.amayaframework.di.scheme.ClassScheme}.
* It can only be applied to constructors, fields, and methods.
* It is inherited.
*
* Simple usage example:
*
* class MyApp {
* // Some internal ctor
* public MyApp() {...}
*
* @Inject
* public MyApp(Service1 service1) {...}
*
* @Inject
* public Service2 service2;
*
* @Inject
* public void setService3(Service3 dep) {...}
* }
*
*/
@Inherited
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.CONSTRUCTOR, ElementType.FIELD, ElementType.METHOD})
public @interface Inject {
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy