서비스 클래스를 생성하는 방법(dependency)

  • 다수의 팩토리 클래스
    XXXService xxx = XXXServiceFactory.getXXXService();
    YYYService yyy = YYYServiceFactory.getYYYService();
    ZZZService zzz = ZZZServiceFactory.getXXXService();
    xxx.doXXX();
    yyy.doYYY();
    zzz.doZZZ();
  • ServiceLocator 클래스
    XXXService xxx = ServiceLocator.getXXXService();
    YYYService yyy = ServiceLocator.getYYYService();
    ZZZService zzz = ServiceLocator.getXXXService();
    xxx.doXXX();
    yyy.doYYY();
    zzz.doZZZ();
  • Ioc 컨테이너
    interface , setter method, constructor
Posted by ologist
 TAG

블로그 이미지
ologist

공지사항

Yesterday191
Today136
Total34,708

달력

 « |  » 2012.02
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29      

최근에 받은 트랙백

글 보관함