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 Summary
Modifier and TypeMethodDescriptiondefault voidonAppDisposed(AppDefinition appDef, AppFactory appFactory) Called when the app is disposed of.voidonAppLoaded(AppDefinition appDef, AppFactory newAppFactory, AppFactory oldAppFactory) Called when the app is reloaded into a new AppFactory.
Method Details
onAppLoaded
Called when the app is reloaded into a new AppFactory. If theoldAppFactoryparameter isnull, 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.
onAppDisposed
Called when the app is disposed of.- Parameters:
appDef- The AppDefinition instance.appFactory- The AppFactory instance being disposed of (null if one never got created).