With all those mechanisms, a reconstituted object loses its referential identity, and you have to consider carefully whether your singleton is still a singleton.
使用这些序列化机制时,被重建的对象将失去原对象的相关标识,所有必须特别注意单例对象是否依然是单例的。
With all those mechanisms, a reconstituted object loses its referential identity, and you have to consider carefully whether your singleton is still a singleton.
使用这些序列化机制时,被重建的对象将失去原对象的相关标识,所有必须特别注意单例对象是否依然是单例的。
应用推荐