Add overridable method "setup" for defining properties

This commit is contained in:
Ilya Chernikov
2018-07-23 10:52:37 +02:00
parent 1de37ca765
commit 3629583942
3 changed files with 4 additions and 2 deletions
@@ -33,6 +33,8 @@ open class ScriptingProperties(body: ScriptingProperties.() -> Unit = {}) {
body()
}
open fun setup() {}
internal fun makePropertyBag(): ChainedPropertyBag =
ChainedPropertyBag.createOptimized(parentPropertiesBag ?: parentPropertiesBuilder?.makePropertyBag(), data)