Preload custom controller defined in runtime framework

102 阅读1分钟

Created by Jerry Wang on May 20, 2014

通过定义business role assign的runtime framework profile可以指定UI application初始化时需要preload的custom controller:
clipboard1
选中runtime framework profile DEFAULT_IC, 双击Global Custom Controllers to be called:
clipboard2
此处定义了4个Global custom controller:
clipboard3
通过Function Profile RUNTIME 将runtime framework profile assign给某个business role:
clipboard4
选择assign了runtime framework profile DEFAULT_IC的business role登陆webclient ui后,这四个custom controller会立即执行其初始化操作:
clipboard5
clipboard6

GET_CUSTOM_CONTROLLER总是先从buffer table里找,如果查询的custom controller实例已经存在,则直接返回该实例; 否则执行custom controller的构造函数来初始化实例:
clipboard7