When a widget is created, an EntryFormAbility.ets file that contains the lifecycle callback function is generated.
Reference
FormExtensionAbility