Skip to content

[3주차] 관심사 분리 1 : 리플렉션 및 빈 주입 구현#82

Open
MINJOOOONG wants to merge 23 commits into
Loopers-play-dev-lab:MINJOOOOONGfrom
MINJOOOONG:week-3
Open

[3주차] 관심사 분리 1 : 리플렉션 및 빈 주입 구현#82
MINJOOOONG wants to merge 23 commits into
Loopers-play-dev-lab:MINJOOOOONGfrom
MINJOOOONG:week-3

Conversation

@MINJOOOONG

@MINJOOOONG MINJOOOONG commented May 5, 2026

Copy link
Copy Markdown

#아직 PR미완성..

진행한 내용

  • Reflection으로 Lecture 생성자 조회
  • Reflection으로 Lecture 객체 동적 생성
  • private 메서드 조회 및 호출
  • Annotation이 붙은 메서드 조회
  • @MethodOrder Annotation 값 조회
  • @Component Annotation 추가
  • Reflections 라이브러리 추가
  • BeanScanner@Component 클래스 조회
  • BeanFactory로 Bean 저장, 조회, 초기화 구현
  • @Autowired Annotation 추가
  • @Autowired 생성자 조회
  • 생성자 파라미터 타입 기반 Bean 주입
  • Bean 생성 순서 문제 수정
  • LectureRepository 분리
  • LectureServiceLectureRepository를 사용하도록 수정
  • LectureControllerLectureService를 사용하도록 수정
  • LectureApplication에서 BeanFactory로 Bean 생성 후 Controller에 주입
  • Lecture를 Bean 대상에서 제외
  • DispatcherServlet 중복 등록 문제 수정

@jude-loopers jude-loopers left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다~ 깔끔하게 잘 구현하셨어요

Comment on lines +65 to +67
if (!beanClasses.contains(beanClass)) {
throw new IllegalArgumentException("빈 클래스를 찾을 수 없습니다: " + beanClass.getName());
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

오 빈 생성 대상인지 검증! 👍🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants