We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Originally posted by bunsung92 April 24, 2023 해당 Disscussions에서는 Spring Container의 Bean Registry와 DI의 내부 동작에 대해 알아보도록 한다.
Spring Container
Bean Registry
DI
BeanDefinition
리플렉션
그리고
Service-locator 패턴(서비스 중개자 브로커)
외부(Container)
짧 정리 Spring Container에 등록된 빈들의 객체는 리플렉션을 통해 객체를 생성한다. DI의 주된 목적은 객체간 강결합을 끊기 위해 컨테이너를 사용한다.
짧 정리
Spring Container에 등록된 빈들의 객체는 리플렉션을 통해 객체를 생성한다. DI의 주된 목적은 객체간 강결합을 끊기 위해 컨테이너를 사용한다.
리플렉션을 통해 객체를 생성한다.
How To Injection?
위에서 정리된 내용처럼 Applicaiton Context 의 구현체중 적절한 구현체가 선택되면 해당 구현체가 빈을 가져오고 주입시키는데 이때 Reflection을 통해 구현된다.
Applicaiton Context
Reflection
스프링의 빈 주입에는
으로 정리 할 수 있다.
해당 주입에 대한 자세한 정리는 Spring 생성자 주입 vs 필드 주입 글을 읽어보며 정리하길 바란다.
번외로 해당 주제의 깊은 내용을 알아 보고 싶다면? https://taes-k.github.io/2021/05/23/spring-di-reflection/
The text was updated successfully, but these errors were encountered:
Irisation23
No branches or pull requests
Discussed in https://github.com/orgs/cs-collections/discussions/156
Originally posted by bunsung92 April 24, 2023
해당 Disscussions에서는
Spring Container
의Bean Registry
와DI
의 내부 동작에 대해 알아보도록 한다.1.
Spring Container
BeanDefinition
객체들로 정의해두고 객체를 생성한다.BeanDefinition
정의에 따라 객체 생성에 대한 정보를 참조하며, 일반적으로리플렉션
을 통해 객체를 생성한다.그리고
Service-locator 패턴(서비스 중개자 브로커)
과 비슷한 매커니즘을 통해 의존성을 주입하며 생성한다. 디커플링이 주된 목적외부(Container)
에서 생성된 객체를 주입 함으로써 결합도를 낮추는 효과를 가질 수 있게 된다.2.
How To Injection?
위에서 정리된 내용처럼
Applicaiton Context
의 구현체중 적절한 구현체가 선택되면해당 구현체가 빈을 가져오고 주입시키는데 이때
Reflection
을 통해 구현된다.스프링의 빈 주입에는
으로 정리 할 수 있다.
해당 주입에 대한 자세한 정리는
Spring 생성자 주입 vs 필드 주입 글을 읽어보며 정리하길 바란다.
The text was updated successfully, but these errors were encountered: