Annotation Interface OnCreate
Annotated methods are called when the controllers owing them get ready.
At the timing of the Spring's javax.annotation.PostConstruct,
InitializingBean.afterPropertiesSet()
or init-method
some methods of the controllers may not work properly.
Any changes made in Locked
OnCreate
methods are sent as part of HTTP responses for script tags
if WCardinalConfiguration.isControllerVariableEmbeddable()
is true,
while changes made in Unlocked
OnCreate
methods may or may not be sent depending on an execution timing.
Use OnPostCreate
instead to stop sending changes.
When a method is called, a controller owing the method is locked.
Accessing fields of the controller owing the method, thus, is thread safe.