Skip to content

Dependency Injection vs. Service Locator #5

Description

@seohy02

책에서는 Service Locator 패턴과 IoC 패턴을 설명하며 비교하고 있는데, 두 패턴에 대한 설명이 간략하다보니 명확하게 이해가 되지 않는 부분이 있었어요.

일반적으로 Dependency Injection와 Service Locator가 비교선상에 놓이는 것으로 보이고, 이 두 가지를 더 알아보면 좋을 것 같습니다!

책만 읽고 느낀점

  • ServiceLocator와 IoC Container의 명확한 차이를 모르겠음
  • 의존성을 외부에서 주입하고(DI) ServiceLocator를 이용할 순 없는것인가?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions