public interface IInstanceLifecycleListenerInterface that any Java class that is hooked into the framework can implement. It enables being called after virtualization has completed successfully, and when the instance is no longer needed due to disposal of the owner. This makes it possible for a class instance to use resources that can be freed up upon dispose and does not have to wait until garbage collection is run.
The construction of an instance of this class is done during the virtualization phase of the owner property.
- Christopher Mindus
All Methods Instance Methods Abstract Methods Modifier and Type Method Description
onDisposed(PropCnr owner)Called when the virtualized owner property is disposed of, i.e.
onVirtualized(IAppSessionGyro appGyro, IClientSessionGyro clientGyro, VirtualSpace virtualSpace, PropCnr virtualizedProp, PropCnr owner)This method is called after the virtualization has completed and that all references, etc, are ready but before any kind of other action is done.
void onVirtualized(IAppSessionGyro appGyro, IClientSessionGyro clientGyro, VirtualSpace virtualSpace, PropCnr virtualizedProp, PropCnr owner)
appGyro- The application gyro instance performing the virtualization.
clientGyro- The client gyro session, can be
nullif not initialized from the client gyro.
virtualSpace- The virtualized VirtualSpace.
virtualizedProp- The property being virtualized, e.g.
or a data connector property.
owner- The owner property container.
void onDisposed(PropCnr owner)Called when the virtualized owner property is disposed of, i.e. no longer used (e.g. client session closed, panel removed from virtual panels).
Note: in case of failures in the virtualization process, the call to
may not have been done, so the assumption that "onVirtualized" has been called cannot be made.
onVirtualized(IAppSessionGyro, IClientSessionGyro, VirtualSpace, PropCnr, PropCnr)
owner- The owner property container. The
nullonly in the case the ClassReference property holding this instance has been removed from it's parent programmatically (the framework does not perform such action).