when and where is createContent called

简介: Created by Jerry Wang, last modified on Aug 07, 2014

Created by Jerry Wang, last modified on Aug 07, 2014

initCompositeSupport

Support

Composite

onControllerConnected

oController

createId

byId

runWithPreprocessors

Preprocessors

applySettings

Trigger point为Js view的初始化:

image.png


Callstack1: Js view instance 执行initCompositeSupport操作:

image.png


Callstack2: this指向JS view,this.oController指向对应的controller instance:

image.png


Callstack3: 在onControllerConnected方法内,执行runWithPreprocessors. t指向JS view instance。

image.png

Callstack4: 执行传入的function f. Function f 会执行JS view instance的applySettings方法,其输入参数为createContent执行的返回结果。

image.png

于是view的createContent方法被触发:

image.png

相关文章
getReader() has already been called for this request
getReader() has already been called for this request
1617 0
getReader() has already been called for this request
|
5月前
|
NoSQL 编译器 API
关于thread使用的错误:pure virtual method called terminate called without an active exception
关于thread使用的错误:pure virtual method called terminate called without an active exception
67 1
|
Java Maven
An attempt was made to call a method that does not exist. The attempt was made from the following
An attempt was made to call a method that does not exist. The attempt was made from the following
425 0
This error might indicate a memory leak if setState() is being called because another object is reta
This error might indicate a memory leak if setState() is being called because another object is reta
onGetLayoutInflater() cannot be executed until the Fragment is attached to the FragmentManager.
onGetLayoutInflater() cannot be executed until the Fragment is attached to the FragmentManager.
335 0
onGetLayoutInflater() cannot be executed until the Fragment is attached to the FragmentManager.
解决RuntimeError: running_mean should contain 36864 elements not 4096
一般在卷积层Conv2d后添加正则化BNBatchNormal,使得数据在relu激活前不会因为数据过大而导致网络不稳定,而我在代码中BatchNorm2d的输入通道数与前一层Conv2d的输出通道数不一致,导致报这个错,两者修改一直即可(这里修改为36864即可)。
999 0
|
JavaScript
Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-
Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-
Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-
|
JavaScript
when and where is getControllerName called
Created by Jerry Wang on Aug 07, 2014
when and where is getControllerName called
|
JavaScript
when and where is createContent called
Created by Jerry Wang, last modified on Aug 07, 2014
106 0
when and where is createContent called