Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Tags
- spring security
- 일급 컬렉션
- OAuth 2.0
- factory
- Volatile
- middleware
- Spring
- lombok
- synchronized
- Google OAuth
- builder
- nestjs
- java
- 일급 객체
- Dependency Injection
Archives
- Today
- Total
목록Dependency Injection (1)
HJW's IT Blog

Dependency Injection(DI) 이란?“Dependency injection is a programming technique that makes a class independent of its dependencies.” DI 란 객체간의 의존성을 외부에서 주입해주는 설계 패턴이다. 이를 통해 객체는 의존하는 객체들을 직접 생성하는 것이 아닌 외부에서 제공된 객체를 사용하게된다. 이를 통해 개발자는 SOLID 원칙의 의존성 역전 원칙 과 단일 책임 원칙을 달성할 수 있다.잠깐 의존성 역전 원칙과 단일 책임 원칙을 짚어보고 넘어가겠다. 의존성 역전 원칙 (Dependency Inversion Principle)DIP 란 무엇일까?DIP 란 상위 모듈이 하위 모듈에 의존하지 않아야 하며, 둘 ..
개발 개념
2024. 10. 19. 16:34