2006/06/06 10:09 Developer
서비스 클래스를 생성하는 방법
서비스 클래스를 생성하는 방법(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
TAG pattern