... |
... |
@@ -21,8 +21,8 @@ |
21 |
21 |
))) |
22 |
22 |
|[[Constructor Injection>>doc:Software Engineering.Dependency Injection.Types of Dependency Injection.WebHome]]|(% style="text-align:justify" %)Dependency Injection performed by passing a dependency to an instance via constructor argument. |
23 |
23 |
|Component|((( |
24 |
|
-1. In Spring, it is a generic annotation for a bean that no other Spring Bean Annotation matches: "@Component". |
25 |
|
-1. In software architecture, it is a module that can be executed independently. It is often compiled and/or compressed into an executable such as a .jar or .exe file. |
|
24 |
+1. In Spring, it is a general term for a bean that no other Spring Bean Annotation matches. |
|
25 |
+1. In software architecture, it is a module that can be executed independently. It is often compiled and/or compressed into an executable binary such as a .jar or .exe file. |
26 |
26 |
))) |
27 |
27 |
|Data Structure|(% style="text-align:justify" %)A very simple type of class that contains only data and no logic. For example, a class that has only public fields but no methods. Another form is a class with private fields and simple corresponding getters and setters. |
28 |
28 |
|Dependency|(% style="text-align:justify" %)In the context of classes, a dependency is a field that must be initialized with an instance of another class in order for an object of that class to function properly. Often, the initialization is realized via Dependency Injection. |
... |
... |
@@ -50,7 +50,7 @@ |
50 |
50 |
2. In the context of software architecture, the term refers to classes that represent the model of the application and often represent things from the real world. For example, a banking application may have entity classes such as //Account//, //Order//, //Customer//, or //Employee//. They are often built like simple Data Structures, but may contain additional validation logic to impose logical constraints on their fields. For example, the integer field //customer.age// must always be between 0 and 150 because that is a logical constraint on people's ages, even though the integer data range is technically much larger. |
51 |
51 |
))) |
52 |
52 |
|[[Field Injection>>doc:Software Engineering.Dependency Injection.Types of Dependency Injection.WebHome]]|(% style="text-align:justify" %)Dependency Injection is performed by forcibly injecting a dependency into an instance through the use of reflections that break even the encapsulation measures. This type of Dependency Injection is to be avoided. |
53 |
|
-|[[Inversion of Control>>doc:Software Architecture.Dependency Injection.Dependency Injection Explained.WebHome]] (IoC)|(% style="text-align:justify" %)Transfers the responsibility of defining the logic and order of Dependency Injections from the developer to computer. |
|
53 |
+|[[Inversion of Control>>doc:Software Engineering.Dependency Injection.Dependency Injection Explained.WebHome]] (IoC)|(% style="text-align:justify" %)Transfers the responsibility of defining the logic and order of Dependency Injections from the developer to computer. |
54 |
54 |
|JavaBean|((( |
55 |
55 |
(% style="text-align: justify;" %) |
56 |
56 |
A design convention for data structures. Usually it means a class which has: |
... |
... |
@@ -77,7 +77,7 @@ |
77 |
77 |
|[[Setter Injection>>doc:Software Engineering.Dependency Injection.Types of Dependency Injection.WebHome]]|(% style="text-align:justify" %)Dependency Injection performed by passing a dependency to an instance via setter method argument. |
78 |
78 |
|Spring Bean|((( |
79 |
79 |
(% style="text-align: justify;" %) |
80 |
|
-A term used in Spring Framework for an object that is contained in the IoC container to be injected into other beans and/or to receive dependency injections. It is one of many components/beans that are wired together via IoC to form the application when it is started. |
|
80 |
+A term used in Spring IoC Framework for an object that is contained in the IoC container to be injected into other beans and/or to receive dependency injections. It is one of many components/beans that are wired together via IoC to form the application when it is started. |
81 |
81 |
|
82 |
82 |
(% style="text-align: justify;" %) |
83 |
83 |
Not to be confused with JavaBeans. |