강의

멘토링

로드맵

인프런 커뮤니티 질문&답변

기쁜 낙지님의 프로필 이미지
기쁜 낙지

작성한 질문수

스프링 핵심 원리 - 기본편

@Configuration과 바이트코드 조작의 마법

AnnotationConfigApplicationContext implements ApplicationContext 를 해야 할 것 같습니다

작성

·

210

0


BeanFactory <interface>
ApplicationContext <interface>
AnnotationConfigApplicationContext <Class>
 
위 구조상
 
AnnotationConfigApplicationContext 이 클래스에서 AnnotationConfigApplicationContext implements ApplicationContext 를 해야할 것 같습니다
 
AnnotationConfigApplicationContext 의 부모의 부모를 봐도implements ApplicationContext 를 하는 소스가 없습니다
 
AnnotationConfigApplicationContext 의 부모인 GenericApplicationContex에서
 
public GenericApplicationContext(@Nullable ApplicationContext parent)
{ this(); setParent(parent); }
 
생성자를 통해 ApplicationContext 를 설정하는 부분을 발견했는데요
 
저희가 배운것 처럼 스프링 내부적으로 Bean 설정을 통해 주입되고 있는건가요? 아니면 왜 implements ApplicationContext 가 없는건가요?

퀴즈

웹 애플리케이션 환경에서 요청마다 새로운 객체를 계속 생성할 때 주로 발생하는 문제는 무엇일까요?

보안 취약점 증가

데이터베이스 연결 오류

메모리 사용량 증가 및 성능 저하

클라이언트 요청 처리 순서 꼬임

답변 1

0

김영한님의 프로필 이미지
김영한
지식공유자

안녕하세요. 율님^^

다음 그림을 참고해주세요.

감사합니다.

기쁜 낙지님의 프로필 이미지
기쁜 낙지

작성한 질문수

질문하기