Introducing StartableByRPC and SchedulableFlow annotations, needed by flows started via RPC and schedulable flows respectively.

CordaPluginRegistry.requiredFlows is no longer needed as a result.
This commit is contained in:
Shams Asari
2017-05-10 11:28:25 +01:00
parent b155764023
commit 48f58b6dbc
52 changed files with 401 additions and 434 deletions

View File

@ -30,14 +30,6 @@ class CorDappInfoServlet(val plugins: List<CordaPluginRegistry>, val rpc: CordaR
} else {
plugins.forEach { plugin ->
h3 { +plugin::class.java.name }
if (plugin.requiredFlows.isNotEmpty()) {
div {
p { +"Whitelisted flows:" }
ul {
plugin.requiredFlows.map { it.key }.forEach { li { +it } }
}
}
}
if (plugin.webApis.isNotEmpty()) {
div {
plugin.webApis.forEach { api ->
@ -56,7 +48,7 @@ class CorDappInfoServlet(val plugins: List<CordaPluginRegistry>, val rpc: CordaR
div {
p { +"Static web content:" }
ul {
plugin.staticServeDirs.map { it.key }.forEach {
plugin.staticServeDirs.keys.forEach {
li { a("web/$it") { +it } }
}
}