aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/pl/treksoft/kvision/ApplicationBase.kt
blob: 83ad69ca12b84f59bd7851b2e1b6df4ad97d36a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/**
 * @author Robert Jaros
 */
package pl.treksoft.kvision

/**
 * Base class for applications.
 *
 * Every application class should inherit from this abstract class.
*/
abstract class ApplicationBase {
/**
 * Starting point for an application.
 * @param state Initial state between Hot Module Replacement (HMR).
*/
abstract fun start(state: Map<String, Any>)

/**
 * Ending point for an application.
 * @return final state for Hot Module Replacement (HMR).
*/
abstract fun dispose(): Map<String, Any>
}