PRODUCTS AND SERVICES INDUSTRIES SUPPORT PARTNERS COMMUNITIES ABOUT
  Coherence 3.4 User Guide
  serializer
Added by Tom Pfaeffle, last edited by Tom Pfaeffle on Jul 28, 2008  (view change)

Labels

 
(None)

serializer

Used in: <user-type>

Description

The serializer element specifies what PofSerializer to use to serialize and deserialize a specific user type.

A PofSerializer is used to serialize and deserialize user type values to and from a POF stream. Within the serializer element, the class-name element is required, and zero or more constructor parameters can be defined within an init-params element.

If the serializer element is omitted, then the user type is assumed to implement the PortableObject interface, and the PortableObjectSerializer implementation is used as the PofSerializer.

If the init-params element is omitted from the serializer element, then the following four constructors are attempted on the specific PofSerializer implementation, and in this order:

  • (int nTypeId, Class clz, ClassLoader loader)
  • (int nTypeId, Class clz)
  • (int nTypeId)
  • ()

Elements

The following table describes the elements you can define within the serializer element.

Element Required/Optional Description
<class-name> Required Sepecifies the name of the serializer.
<init-params> Optional The init-params element contains zero or more arguments (each as an init-param) that correspond to the parameters of a constructor of the class that is being configured.