01: package liquibase;
02:
03: public class UIFactory {
04:
05: private static UIFactory instance = new UIFactory();
06:
07: private UIFacade facade = new SwingUIFacade();
08:
09: public static UIFactory getInstance() {
10: return instance;
11: }
12:
13: public UIFacade getFacade() {
14: return facade;
15: }
16:
17: public void setFacade(UIFacade facade) {
18: this.facade = facade;
19: }
20: }
|