package facade;
import facade.system.Facade;
public class Application {
public static void main(String[] args) {
Facade facade = new Facade();
facade.process();
}
}
package facade.system;
public class Facade {
private SubSystem01 subSystem01;
private SubSystem02 subSystem02;
private SubSystem03 subSystem03;
public Facade(){
subSystem01 = new SubSystem01();
subSystem02 = new SubSystem02();
subSystem03 = new SubSystem03();
}
public void process(){
subSystem01.process();
subSystem02.process();
subSystem03.process();
}
}
package facade.system;
class SubSystem01 {
public SubSystem01(){
System.out.println("Call Constructor : " + getClass().getSimpleName());
}
public void process(){
System.out.println("Call Process : "+ getClass().getSimpleName());
}
}