All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.amayaframework.di.Inject Maven / Gradle / Ivy

Go to download

A framework responsible for monitoring and automating the dependency injection process.

There is a newer version: 2.2.0
Show newest version
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