Nov 8, 2022 06:37
2 yrs ago
14 viewers *
English term
to dependency-inject/dependency-injected
English to Russian
Tech/Engineering
IT (Information Technology)
Using AspectJ to dependency-inject domain objects with Spring
The following example shows a class that can only be dependency-injected with constructor injection
If you use Spring to dependency-inject a strongly-typed Collection into a bean, you can take advantage of Spring’s type-conversion support such that the elements of your strongly-typed Collection instances are converted to the appropriate type prior to being added to the Collection .
You cannot dependency-inject a prototype-scoped bean into your singleton bean, because that injection occurs only once, when the Spring container instantiates the singleton bean and resolves and injects its dependencies.
In this example, when a UserManager instance invokes a method on the dependency-injected UserPreferences object, it is actually invoking a method on the proxy.
The following example shows a class that can only be dependency-injected with constructor injection
If you use Spring to dependency-inject a strongly-typed Collection into a bean, you can take advantage of Spring’s type-conversion support such that the elements of your strongly-typed Collection instances are converted to the appropriate type prior to being added to the Collection .
You cannot dependency-inject a prototype-scoped bean into your singleton bean, because that injection occurs only once, when the Spring container instantiates the singleton bean and resolves and injects its dependencies.
In this example, when a UserManager instance invokes a method on the dependency-injected UserPreferences object, it is actually invoking a method on the proxy.
Proposed translations
(Russian)
3 +1 | -> | mk_lab |
5 | Внедрение зависимости | Vadim Pogulyaev |
Proposed translations
+1
1 hr
Selected
->
внедрение зависимости в объект(ы) / объект(ы) с внедренной зависимостью
Внедрение зависимостей в GO - Habr.com
https://habr.com › post
Идея внедрения зависимости проста: объект, зависящий от другого объекта, делегирует управление его жизненным циклом внешнему коду.
Dependency injection - Wikipedia
https://en.wikipedia.org › wiki › Dependency_injection
In software engineering, dependency injection is a design pattern in which an object or function receives other objects or functions that it depends on.
Внедрение зависимости - Википедия
https://ru.wikipedia.org › wiki › Вне...
Внедрение зависимости (англ. Dependency injection, DI) — процесс предоставления внешней зависимости программному компоненту.
Внедрение зависимостей в GO - Habr.com
https://habr.com › post
Идея внедрения зависимости проста: объект, зависящий от другого объекта, делегирует управление его жизненным циклом внешнему коду.
Dependency injection - Wikipedia
https://en.wikipedia.org › wiki › Dependency_injection
In software engineering, dependency injection is a design pattern in which an object or function receives other objects or functions that it depends on.
Внедрение зависимости - Википедия
https://ru.wikipedia.org › wiki › Вне...
Внедрение зависимости (англ. Dependency injection, DI) — процесс предоставления внешней зависимости программному компоненту.
4 KudoZ points awarded for this answer.
1 hr
Something went wrong...