net.corda.node.internal / AbstractNode / findService

findService

inline fun <reified T : Any> findService(): <ERROR CLASS>

Locates and returns a service of the given type if loaded, or throws an exception if not found.