Skip to content

Update refactored sample code for 依存性の注入によるリファクタリング #1475

New issue

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

kazuf3
Copy link

@kazuf3 kazuf3 commented Jan 1, 2025

説明では DI の実行後, UserServiceImpl から UserRepositoryImpl への依存性がなくなっ ているとのことであったが, サンプルでは,

  • UserServiceImpl の実装を UserService に移植し,
  • UserService に UserRepository への依存性を注入し,
  • UserServiceImpl はなおも UserRepositoryImpl に依存する となっていた.

これに対し,説明に合わせるための修正を実施した.

説明では DI の実行後, UserServiceImpl から UserRepositoryImpl への依存性がなくなっ
ているとのことであったが, サンプルでは,
- UserServiceImpl の実装を UserService に移植し,
- UserService に UserRepository への依存性を注入し,
- UserServiceImpl はなおも UserRepositoryImpl に依存する
となっていた.

これに対し,説明に合わせるための修正を実施した.
@kazuf3 kazuf3 requested review from xuwei-k and kmizu as code owners January 1, 2025 22:45
@kmizu kmizu enabled auto-merge (squash) January 13, 2025 06:39
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