Connectors must be serializable.
连接器必须是可串行化的。
What makes a serializable field?
怎样的字段才是可序列化字段?
Listing 1. Is the class serializable?
清单1.此类是否可串行化?
Classes are often serializable by default.
默认情况下,类通常是可串行化的。
The method parameters and return types must be serializable.
方法参数和返回类型必须是可序列化的。
An array or collection of serializable types is also serializable.
序列化类型的数组或集合也是序列化的。
Note that data graphs and their models are always serializable to XML.
注意,数据图及其模型总是能够序列化为XML。
Define XML serializable types for the return value (and the parameters).
为返回值和参数定义XMLserializable类型。
Do this by creating a POJO that implements the "serializable" interface.
操作方法是创建一个实现这个“可序列化”接口的POJO。
You first check whether the object implemented the serializable interface.
首先应该检查该对象是否实现了serializable接口。
Moreover, as it is composed of Data Objects, a Data Graph is serializable.
此外,由于数据图是由数据对象组成的,因此它是可序列化的。
Objects that you put on the session should be thread-safe and serializable.
放到会话中的对象应该是线程安全的和可序列化的。
Furthermore, all the data fields in the class must themselves be serializable.
此外,该类中的所有数据字段本身必须是序列化的。
You don't need to use this data member anywhere in your serializable classes.
不需要在可序列化类中到处使用这个数据成员。
Pass-by-copy semantics for mutable serializable objects when running in a single address space.
在单一地址空间中运行时,易变的可序列化对象的Pass - by - copy语义。
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.
因为需要跨组件传递上下文对象,所以这个对象应该是可序列化的。
The EJB specification states that the key must be a unique value represented by a serializable object.
EJB规范规定:主键必须是一个可序列化的对象所表示的独一无二的值。
Directory services provide a way to store and retrieve information, such as serializable objects, in a distributed environment.
目录服务提供了在分布式环境中存储和检索信息的一种方法,比如序列化对象。
If you want the class to be serializable, you'll need to test it, just as you would test a class that directly implements serializable.
若您希望类可串行化,就需要测试它,这与您需要测试一个直接实现了Serializable的类相同。
The serializable interface does not contain any methods: it exists only to tell the serialization runtime that your object is serializable.
Serializable接口不包含任何方法。它的作用只是告诉序列化运行时这个对象是可以序列化的。
If so, those objects will need to be serializable, or they should be discarded during serialization and re-established during de-serialization.
如果是,则需要这些对象是可串行化的,否则,就应该在串行化过程中将其删除,在解串行化过程中重新建立。
In addition, applications using the IBM WebSphere eXtreme Scale ObjectMap APIs can utilize the XC10 appliance data cache to store serializable objects.
另外,使用IBMWebSphereeXtremeScale ObjectMapAPIs的应用程序能够利用XC10设备数据缓存来存储可序列化对象。
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对象不可序列化,这意味着,在高度可用的环境中,回调处理程序返回的句柄不能被复制。
This is the result of the JAX-RPC behavior: JAX-RPC will make the domain name part of the URI to generate the package name for the serializable product class.
这是JAX -RPC行为的结果:JAX - RPC将使用URI的域名部分来生成可序列化产品类的包名。
If you like, you can assert something about the thrown exception in the catch block. For example, Listing 6 checks that FunctionContext is not serializable.
如果愿意,您还可在catch中作出一些关于所抛出异常的断言。
In the sections that follow, I show you a few simple unit tests that ensure that you do not inadvertently change the serialization format of your serializable classes.
在本文后续各节中,我将为您展示一些简单的单元测试,这些单元测试能确保您不会不经意地更改可串行化类的串行格式。
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类、所包含的数据地图以及它们的元素都是可序列化的。
MBean methods may also use other serializable data types, but doing so can create interoperability issues because the class files must be made available to the JMX client as well.
MBean方法也可以使用其他可以序列化的数据类型,但是这样做会造成互操作性问题,因为类文件也必须对JMX客户机可用。
The eventual return type is not specified by any of the asynchronous service interfaces or implementation classes, leaving the return type your choice, which can be any serializable data type.
最终返回类型不通过任意异步服务接口或实现类指定,允许您选择任意可序列化的返回数据类型。
应用推荐