Package com.iizix.server.app
Interface IAppChangedListener
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Interface to listen to app changes such as App Load or Hot Reloaded, and/or App Dispose. The App Dispose method is by default ignored and must be overridden.
- Method SummaryModifier and TypeMethodDescription- default void- onAppDisposed- (AppDefinition appDef, AppFactory appFactory) Called when the app is disposed of.- void- onAppLoaded- (AppDefinition appDef, AppFactory newAppFactory, AppFactory oldAppFactory) Called when the app is reloaded into a new AppFactory.
- Method Details- onAppLoadedCalled when the app is reloaded into a new AppFactory. If the- oldAppFactoryparameter is- null, then it is the first time the app is loaded.- Parameters:
- appDef- The AppDefinition instance.
- newAppFactory- The new AppFactory instance.
- oldAppFactory- The old AppFactory instance,- nullif none previously existed.
 
- onAppDisposedCalled when the app is disposed of.- Parameters:
- appDef- The AppDefinition instance.
- appFactory- The AppFactory instance being disposed of (null if one never got created).