Before you start
Before you start, you need to learn the basic things about this project.
Annotations
You need to know what @Component, @Injectable, @BeanSetup and @Bean annotations are.
Component - This is an annotation that means that a given class is a component. Components are automatically discovered and registered with Mineject dependencies during class scanning.
Injectable - This annotation is used in constructors. It is used when you want to inject some dependencies into the constructor when instantiating an object.
BeanSetup - It means a class that will provide beans, or in simple terms, dependencies that you will later be able to inject into your constructor.
Bean - In comparison to other annotations, this annotation is used in methods (functions) that return a type which is later passed into Mineject dependencies. This annotation is used when you want to manually provide a dependency.
Incomplete documentation
Since the documentation does not contain all the features of this project, please take a look at the sample code on GitHub. Click here to view examples.
API Usage
This function is used to set the package that will be used when scanning classes.
If you want to specify beans manually when creating an instance of the Mineject object, you can do it this way.
Getting dependencies using Dependency Provider.
Last updated