CORDA-556: Added Cordapp Config and a sample (#2469)

* Added per-cordapp configuration 
* Added new API for Cordformation cordapp declarations to support per-cordapp configuration
* Added a cordapp configuration sample
This commit is contained in:
Clinton
2018-02-14 14:49:59 +00:00
committed by GitHub
parent 3802066bf6
commit 174ed3c64b
53 changed files with 1063 additions and 206 deletions

View File

@ -0,0 +1,5 @@
someStringValue=hello world
someIntValue=1
nested: {
value: a string
}

View File

@ -0,0 +1,10 @@
package net.corda.configsample
import net.corda.core.flows.FlowLogic
class ConfigSampleFlow : FlowLogic<String>() {
override fun call(): String {
val config = serviceHub.getAppContext().config
return config.getString("someStringValue")
}
}