aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/pl/treksoft/kvision
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2018-02-20 11:59:26 +0100
committerRobert Jaros <rjaros@finn.pl>2018-02-20 11:59:26 +0100
commit4495ca4af667b5234f154196059cf636d415ad86 (patch)
tree52c21a32c01aab1247c96e382401ec54d2e933ad /src/main/kotlin/pl/treksoft/kvision
parent6c3ac51061f3a06dea5a56d9e57174261915e8db (diff)
downloadkvision-4495ca4af667b5234f154196059cf636d415ad86.tar.gz
kvision-4495ca4af667b5234f154196059cf636d415ad86.tar.bz2
kvision-4495ca4af667b5234f154196059cf636d415ad86.zip
Change abstract class to interface for ApplicationBase.
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision')
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/hmr/ApplicationBase.kt10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/hmr/ApplicationBase.kt b/src/main/kotlin/pl/treksoft/kvision/hmr/ApplicationBase.kt
index bd92bc25..3183f71a 100644
--- a/src/main/kotlin/pl/treksoft/kvision/hmr/ApplicationBase.kt
+++ b/src/main/kotlin/pl/treksoft/kvision/hmr/ApplicationBase.kt
@@ -22,20 +22,20 @@
package pl.treksoft.kvision.hmr
/**
- * Base class for applications.
+ * Base interface for applications.
*
- * Base class for applications supporting Hot Module Replacement (HMR).
+ * Base interface for applications supporting Hot Module Replacement (HMR).
*/
-abstract class ApplicationBase {
+interface ApplicationBase {
/**
* Starting point for an application.
* @param state Initial state between Hot Module Replacement (HMR).
*/
- abstract fun start(state: Map<String, Any>)
+ 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>
+ fun dispose(): Map<String, Any>
}