Connectors must be serializable.
连接器必须是可串行化的。
What makes a serializable field?
怎样的字段才是可序列化字段?
Listing 1. Is the class serializable?
清单1.此类是否可串行化?
Classes are often serializable by default.
默认情况下,类通常是可串行化的。
NET type. The Serializable interface is marked in.
序列化接口在代码生成器中进行标记。
Listing 1 shows a Person class implementing Serializable.
清单1显示一个实现Serializable的person类。
Sometimes these classes implement Serializable explicitly.
有时这些类显式实现Serializable。
The method parameters and return types must be serializable.
方法参数和返回类型必须是可序列化的。
An array or collection of serializable types is also serializable.
序列化类型的数组或集合也是序列化的。
Define XML serializable types for the return value (and the parameters).
为返回值和参数定义XMLserializable类型。
Note that data graphs and their models are always serializable to XML.
注意,数据图及其模型总是能够序列化为XML。
Do this by creating a POJO that implements the "serializable" interface.
操作方法是创建一个实现这个“可序列化”接口的POJO。
Moreover, as it is composed of Data Objects, a Data Graph is serializable.
此外,由于数据图是由数据对象组成的,因此它是可序列化的。
You first check whether the object implemented the serializable interface.
首先应该检查该对象是否实现了serializable接口。
Objects that you put on the session should be thread-safe and serializable.
放到会话中的对象应该是线程安全的和可序列化的。
You don't need to use this data member anywhere in your serializable classes.
不需要在可序列化类中到处使用这个数据成员。
Furthermore, all the data fields in the class must themselves be serializable.
此外,该类中的所有数据字段本身必须是序列化的。
Therefore, such data members should also implement the Serializable interface.
所以,这类数据成员也应当实现Serializable接口。
As such, all values passed into the ORB must implement the serializable interface.
因而,传入OR B的所有值都必须实现可序列化的接口。
Even if a class implements Serializable, there's no guarantee that it can be serialized.
即使一个类实现了Serializable,依然不能保证它能够串行化。
Consider a Serializable Person class that defines a friend of its own, as shown in Listing 1.
Serializable Person类定义了一个它自己的友元,如清单1所示。
Pass-by-copy semantics for mutable serializable objects when running in a single address space.
在单一地址空间中运行时,易变的可序列化对象的Pass - by - copy语义。
The classes that you serialize with XStream don't need to implement the Serializable interface.
使用XStream序列化的类不需要实现Serializable接口。
Mediatable -- the data passed in and out is serializable such that it can be easily transformed.
可调整——传入传出的数据是可序列化的,这样就可容易转换。
Since the context object needs to be passed across components, the object should be serializable.
因为需要跨组件传递上下文对象,所以这个对象应该是可序列化的。
Custom token object, for the lack of a better name, is really just a regular serializable object.
自定义令牌对象(因为没有更合适的名称)实际上是一个常规的可序列化对象。
I added implements Serializable to the class signature of QualifiedName and the test then passed.
我为QualifiedName的类签名添加了implements Serializable,这一次测试顺利通过。
The EJB specification states that the key must be a unique value represented by a serializable object.
EJB规范规定:主键必须是一个可序列化的对象所表示的独一无二的值。
To accomplish this, CAI first validates if a business component implements the Serializable interface.
为了实现这个目标,CAI首先验证业务组件是否实现Serializable接口。
Design it as inheriting from both Serializable and Work, just to assure we can serialize operation results.
将它设计为从Serializable和Work继承,这只是为了确保我们可以序列化操作结果。
应用推荐