Last week, I was able to implement this into an application we’re currently developing at work. It took me a while to figure it out but I must say, it is really handy. A ViewStack for example will allow switching from one child to another, but as the child of that container gets to be really complicated, it may highly affect your application’s performance.
Why???
If no creationPolicy is specified for a container, that container inherits its parent’s creationPolicy. If no creationPolicy is specified for the Application, it defaults to ContainerCreationPolicy.AUTO.
This is where Deferred Instantiation can save your day.
I have below a basic example of how you can implement Deferred Instantiation using createComponentFromDescriptor()
createComponentFromDescriptor allows you to create one child at a time.


