آفرینش اشیاء(Object Creation) به عنوان یکی از موضوعات مهم در طراحی به شکلی با موضوع جذاب معکوسسازی کنترل و تزریق وابستگی مرتبط است. مناسب دیدم برخی منابع مفیدی را که در این زمنیه وجود دارد، در اینجا ذکر کنم.
Inversion of control, or IoC, is an abstract principle describing an aspect of some software architecture designs in which the flow of control of a system is inverted in comparison to the traditional architecture of software libraries.
Dependency injection (DI) in Computer programming refers to the process of supplying an external dependency to a software component. It is a specific form of inversion of control where the concern being inverted is the process of obtaining the needed dependency.
References:
– Inversion of control (IoC)
– Dependency injection (DI)
– Inversion of Control Containers and the Dependency Injection pattern
– Java: Spring Framework
– .NET: Unity – Dependency Injection and Inversion of Control Container
– .NET: The Unity Application Block
گزیده:
Patterns are a starting point, not a destination. Martin Fowler, Analysis Pattern
دیدگاهتان را بنویسید