Addressed comments in PR review.

This commit is contained in:
Jose Coll 2016-11-01 12:05:48 +00:00
parent 308d7c1df7
commit d9f0a161e4
2 changed files with 2 additions and 3 deletions

View File

@ -19,6 +19,8 @@ interface PluginServiceHub : ServiceHub {
* form: registerProtocolInitiator(InitiatorProtocol::class, ::InitiatedProtocol)
* @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<*>)
/**

View File

@ -32,9 +32,6 @@ object DataVending {
* Additionally, because nodes do not store invalid transactions, requesting such a transaction will always yield null.
*/
@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() {
companion object {