在建立Flow與Action時應該同時再傳入Implementation物件,因此定義setImpl()方法。在內部取得Properties、Model與Action等物件時依封裝原則加上getBaseProperties()、getBaseModel()與getBaseAction()等方法,宣告為protected供內部呼叫。方法名稱會加上Base是因為在Component那層還會有自己要使用的getProperties()、getModel()與getAction(),那是對應取得Component層級的方法。
這是基本Component裡的Flow與Action的結構。

基本Component的內部運作非常地重要,因為這關係到所有Component能否正常動作。到此為止基本Component的全部內部關聯如下:

沒有留言:
張貼留言