mirror of
https://github.com/corda/corda.git
synced 2025-02-22 10:10:59 +00:00
Add comment to explain why AbstractNode is marked as SingletonSerializeAsToken
This commit is contained in:
parent
3e5a8145b5
commit
8c77ae7c84
@ -54,6 +54,9 @@ import java.util.*
|
|||||||
/**
|
/**
|
||||||
* A base node implementation that can be customised either for production (with real implementations that do real
|
* A base node implementation that can be customised either for production (with real implementations that do real
|
||||||
* I/O), or a mock implementation suitable for unit test environments.
|
* I/O), or a mock implementation suitable for unit test environments.
|
||||||
|
*
|
||||||
|
* Marked as SingletonSerializeAsToken to prevent the invisible reference to AbstractNode in the ServiceHub accidentally
|
||||||
|
* sweeping up the Node into the Kryo checkpoint serialization via any protocols holding a reference to ServiceHub.
|
||||||
*/
|
*/
|
||||||
// TODO: Where this node is the initial network map service, currently no networkMapService is provided.
|
// TODO: Where this node is the initial network map service, currently no networkMapService is provided.
|
||||||
// In theory the NodeInfo for the node should be passed in, instead, however currently this is constructed by the
|
// In theory the NodeInfo for the node should be passed in, instead, however currently this is constructed by the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user