Module hiveremoting.caucho
Back to master index

[public] Configuration Point hiveremoting.caucho.CauchoSerializersOccurs: unbounded
This configuration point allows definition of special serializers to be used by Caucho server and client classes. This can prove useful if you have special information to convey over Hessian/Burlap protocol, e.g. safe enum classes. It is important to make sure that this configuration point is defined on both client and server sides, and in an identical way (i.e. exactly the same contributions).
Schema
Element <map>
Defines one mapping entry from a Java class to a Serializer and a Deserializer.
Attribute deserializer Translator: object
An instance of com.caucho.hessian.io.Deserializer to be used for instances of "object-class".
Attribute deserializer-class Translator: class
A class implementing com.caucho.hessian.io.Deserializer that will be constructed and used for instances of "object-class". That class must have one public constructor taking one "class" argument. Only one of "deserializer" and "deserializer-class" can be set in one "map" element. If both are set, "serializer" will be used.
Attribute object-class (required) (unique) Translator: class
The class for which we define Caucho serializers/deserializers.
Attribute serializer Translator: object
An instance of com.caucho.hessian.io.Serializer to be used for instances of "object-class".
Attribute serializer-class Translator: class
A class implementing com.caucho.hessian.io.Serializer that will be constructed and used for instances of "object-class". That class must have one public constructor taking one "class" argument. Only one of "serializer" and "serializer-class" can be set in one "map" element. If both are set, "serializer" will be used.
Attribute strict-class Translator: boolean,default=true
If "true", then any serialized object that is an exact instance of this class (not a subclass) will use the serializers defined in this contribution. If "false", then any instance of this class (or any subclass) will use the serializers defined in this contribution.
Conversion Rules
<conversion class="net.sourceforge.hiveremoting.caucho.CauchoSerializerContribution" />

Module hiveremoting.caucho
Back to master index