mirror of
https://github.com/corda/corda.git
synced 2025-01-18 18:56:28 +00:00
Adds JVMStatic annotation to getServiceType.
This commit is contained in:
parent
03ddaaac11
commit
d485441c27
@ -30,6 +30,7 @@ class ServiceType private constructor(val id: String) {
|
||||
val regulator: ServiceType = corda.getSubType("regulator")
|
||||
val networkMap: ServiceType = corda.getSubType("network_map")
|
||||
|
||||
@JvmStatic
|
||||
fun getServiceType(namespace: String, typeId: String): ServiceType {
|
||||
require(!namespace.startsWith("corda")) { "Corda namespace is protected" }
|
||||
return baseWithSubType(namespace, typeId)
|
||||
|
Loading…
Reference in New Issue
Block a user