-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BLZT-70] whole markdown documentation
- Loading branch information
1 parent
2ed2697
commit e4dd773
Showing
64 changed files
with
532 additions
and
229 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Autowired Annotation | ||
|
||
**Annotation indicating that a field, constructor, or method should be autowired by the *Bring IoC* container.** | ||
|
||
This annotation can be applied to fields, constructors, and methods in a *Bring* bean class to let Bring automatically inject the dependencies at runtime. | ||
|
||
When applied to a field, the *Bring IoC* container will automatically inject a compatible bean, resolved by type, into the annotated field. When applied to a constructor, the container will use constructor injection to provide the required dependencies. If applied to a method, the container will invoke the method after initializing the bean, injecting the necessary dependencies into the method parameters. | ||
|
||
This annotation is part of the *Bring Framework's* dependency injection mechanism, enabling the creation of loosely coupled and easily testable components. | ||
|
||
**Usage Example:** | ||
```java | ||
@Component | ||
public class MyComponent { | ||
|
||
@Autowired | ||
private MyDependency myDependency; | ||
|
||
// Constructors and methods can also be annotated | ||
@Autowired | ||
public MyComponent(MyDependency myDependency) { | ||
this.myDependency = myDependency; | ||
} | ||
} | ||
``` | ||
|
||
- [Java Doc](https://yevgendemotestorganization.github.io/bring-core-javadoc/com/bobocode/bring/core/annotation/Autowired.html) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Bean Annotation | ||
|
||
**Annotation indicating that a method will be used to create `Singleton` or `Prototype` Beans.** | ||
|
||
The result of the method invocation is an object that represents a `Bean` that can be injected into other Beans | ||
via constructor, field injection, or setter using the `Autowired` annotation. | ||
|
||
This annotation should be used only for methods under a configuration class | ||
(a class annotated with `@Configuration`). When applied to a method, | ||
it becomes eligible for `Bean` definition registration and later used for `Bean` creation. | ||
|
||
The name of the `Bean` will be the name of the method. Injection of another `Bean` via a parameter is possible by | ||
adding a method parameter of the type and name of a bean already defined in the `Configuration` class. | ||
|
||
**Usage Example:** | ||
```java | ||
@Configuration | ||
public class MyConfiguration { | ||
|
||
@Bean | ||
public String stringBean1() { | ||
return "Hello, 1"; | ||
} | ||
|
||
@Bean | ||
public String stringBean2(String stringBean1) { | ||
return stringBean1 + "!"; | ||
} | ||
} | ||
``` | ||
|
||
- [Java Doc](https://yevgendemotestorganization.github.io/bring-core-javadoc/com/bobocode/bring/core/annotation/Bean.html) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# BeanProcessor Annotation | ||
|
||
**Annotation used to mark extensions for custom scanners, resolvers, or processors in the client's application.** | ||
|
||
These extensions can be used to perform specific tasks related to bean scanning, resolving, or processing. | ||
In addition, there are some limitations on constructors. Some classes should have only the default constructor or one field, | ||
for instance, `RestControllerBeanPostProcessor`. | ||
|
||
**Usage Example:** | ||
```java | ||
@BeanProcessor | ||
public class MyCustomProcessor { | ||
// Your custom processing logic here | ||
} | ||
``` | ||
- [Java Doc](https://yevgendemotestorganization.github.io/bring-core-javadoc/com/bobocode/bring/core/annotation/BeanProcessor.html) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.