강의

멘토링

로드맵

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

석재현님의 프로필 이미지
석재현

작성한 질문수

스프링 핵심 원리 - 기본편

인터페이스 InitializingBean, DisposableBean

초기화 콜백, 소멸전 콜백 질문

작성

·

211

0


콜백 관련되서 질문있습니다!

위의 소스코드 주석처럼 afterPropertiesSet() 함수가 스프링이 호출하는 초기화 콜백 함수이고,

destroy() 함수가 스프링 종료 되기 전 호출하는 소멸전 콜백함수로 이해했는데 맞나요??

 

 

 

 

퀴즈

The main reason for separating object creation and initialization in the Spring Bean lifecycle is to allow for dependency injection and other setup logic to be applied after the object has been fully constructed by the constructor.

Memory allocation speed improvement

Resolving the Dependency Injection Completion Point Issue

Constructor Overloading Support

Improve Garbage Collection Efficiency

답변 1

0

안녕하세요. 석재현님, 공식 서포터즈 David입니다.

.
네, 맞습니다:)

석재현님의 프로필 이미지
석재현
질문자

감사합니당

석재현님의 프로필 이미지
석재현

작성한 질문수

질문하기