The EJB specification states that the key must be a unique value represented by a serializable object.
EJB规范规定:主键必须是一个可序列化的对象所表示的独一无二的值。
Custom token object, for the lack of a better name, is really just a regular serializable object.
自定义令牌对象(因为没有更合适的名称)实际上是一个常规的可序列化对象。
Since the context object needs to be passed across components, the object should be serializable.
因为需要跨组件传递上下文对象,所以这个对象应该是可序列化的。
Serializing the session object: Since objects that have been included in a session will be synchronized across nodes of a cluster, they must be implemented with the serializable interface.
序列化会话对象:因为会话中包含的对象将在集群内的节点中进行同步,所以必须实现它们的serializable接口。
The serializable interface does not contain any methods: it exists only to tell the serialization runtime that your object is serializable.
Serializable接口不包含任何方法。它的作用只是告诉序列化运行时这个对象是可以序列化的。
The Future object is not serializable, which means that in a highly available environment the handle returned by the callback handler cannot be replicated.
Future对象不可序列化,这意味着,在高度可用的环境中,回调处理程序返回的句柄不能被复制。
Object serialization is an easy way for implementing the repository's persistence since the DataMapRepository class, the contained data maps, and their elements are serializable.
对象序列化是实现存储库持久性的一种最简单的方式,原因是datamaprepository类、所包含的数据地图以及它们的元素都是可序列化的。
You first check whether the object implemented the serializable interface.
首先应该检查该对象是否实现了serializable接口。
The compiler could infer that t is Integer, Number, Serializable, or Object, but it chooses Integer as that is the most specific type that fits the constraints.
编译器能够推断t是Integer、Number、serializable或object,但它选择Integer作为满足约束的最具体类型。
If you try to serialize your object with a normal event, serialization will fail because the storage backing the event isn't serializable.
如果你试图通过一个普通事件来序列化你的对象,序列化就会失败,这是因为备份该事件的存储是不可序列化的。
An example where this is useful is when your object is serializable and you have an event that is handled by a non-serializable delegate object.
一个展示了自定义事件访问器有用一面的例子,就是当你的对象是可序列化的、并且你有一个可以被一个不可序列化的委托对象处理的事件的时候。
An example where this is useful is when your object is serializable and you have an event that is handled by a non-serializable delegate object.
一个展示了自定义事件访问器有用一面的例子,就是当你的对象是可序列化的、并且你有一个可以被一个不可序列化的委托对象处理的事件的时候。
应用推荐