facadeパッケージ
Facadeパターン(Wikipedia)を実装するクラス群を持つ。Facadeクラスのみを持つ。
Facadeクラス
coreパッケージの各クラスに対するFacadeにあたるクラス。各メソッドは基本的に,下記表の対応するメソッドを呼び出すのみ。
| # | メソッド | 対応するメソッド | 備考 |
|---|---|---|---|
| 1 | registerCommand | Controller#registerCommand | |
| 2 | removeCommand | Controller#removeCommand | |
| 3 | hasCommand | Controller#hasCommand | |
| 4 | registerProxy | Model#registerProxy | |
| 5 | retrieveProxy | Model#retrieveProxy | |
| 6 | removeProxy | Model#removeProxy | |
| 7 | hasProxy | Model#hasProxy | |
| 8 | registerMediator | View#registerMediator | |
| 9 | retrieveMediator | View#retrieveMediator | |
| 10 | removeMediator | View#removeMediator | |
| 11 | hasMediator | View#hasMediator | |
| 12 | sendNotification | View#notifyObservers | 引数にNotificationの内容を渡す。 |
| 13 | notifyObservers | 引数にNotificationインスタンスを渡す。 |