mirror of
https://github.com/corda/corda.git
synced 2025-02-06 19:19:19 +00:00
Addressed comments in PR review.
This commit is contained in:
parent
308d7c1df7
commit
d9f0a161e4
@ -19,6 +19,8 @@ interface PluginServiceHub : ServiceHub {
|
|||||||
* form: registerProtocolInitiator(InitiatorProtocol::class, ::InitiatedProtocol)
|
* form: registerProtocolInitiator(InitiatorProtocol::class, ::InitiatedProtocol)
|
||||||
* @param protocolFactory The protocol factory generating the initiated protocol.
|
* @param protocolFactory The protocol factory generating the initiated protocol.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// TODO: remove dependency on Kotlin relfection (Kotlin KClass -> Java Class).
|
||||||
fun registerProtocolInitiator(markerClass: KClass<*>, protocolFactory: (Party) -> ProtocolLogic<*>)
|
fun registerProtocolInitiator(markerClass: KClass<*>, protocolFactory: (Party) -> ProtocolLogic<*>)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -32,9 +32,6 @@ object DataVending {
|
|||||||
* Additionally, because nodes do not store invalid transactions, requesting such a transaction will always yield null.
|
* Additionally, because nodes do not store invalid transactions, requesting such a transaction will always yield null.
|
||||||
*/
|
*/
|
||||||
@ThreadSafe
|
@ThreadSafe
|
||||||
// TODO: I don't like that this needs ServiceHubInternal, but passing in a state machine breaks MockServices because
|
|
||||||
// the state machine isn't set when this is constructed. [NodeSchedulerService] has the same problem, and both
|
|
||||||
// should be fixed at the same time.
|
|
||||||
class Service(services: PluginServiceHub) : SingletonSerializeAsToken() {
|
class Service(services: PluginServiceHub) : SingletonSerializeAsToken() {
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user