Search in sources :

Example 1 with SerialMarshallerFactory

use of org.jboss.marshalling.serial.SerialMarshallerFactory in project jvm-serializers by eishay.

the class JBossMarshalling method register.

public static void register(final TestGroups groups) {
    MarshallerFactory riverFactory = new RiverMarshallerFactory();
    groups.media.add(JavaBuiltIn.mediaTransformer, new MarshallingSerializer<MediaContent>(MediaContent.class, "jboss-marshalling-river", riverFactory, false, false), new SerFeatures(SerFormat.BINARY, SerGraph.FULL_GRAPH, SerClass.ZERO_KNOWLEDGE, "full graph zero knowledge"));
    groups.media.add(JavaBuiltIn.mediaTransformer, new MarshallingSerializer<MediaContent>(MediaContent.class, "jboss-marshalling-river-manual", riverFactory, false, true), new SerFeatures(SerFormat.BINARY, SerGraph.FULL_GRAPH, SerClass.MANUAL_OPT, "full graph with manual optimizations"));
    groups.media.add(JavaBuiltIn.mediaTransformer, new MarshallingSerializer<MediaContent>(MediaContent.class, "jboss-marshalling-river-ct", riverFactory, true, false), new SerFeatures(SerFormat.BINARY, SerGraph.FULL_GRAPH, SerClass.CLASSES_KNOWN, "full graph with preregistered classes"));
    groups.media.add(JavaBuiltIn.mediaTransformer, new MarshallingSerializer<MediaContent>(MediaContent.class, "jboss-marshalling-river-ct-manual", riverFactory, true, true), new SerFeatures(SerFormat.BINARY, SerGraph.FULL_GRAPH, SerClass.MANUAL_OPT, "full graph preregistered classes, manual optimization"));
    groups.media.add(JavaBuiltIn.mediaTransformer, new MarshallingSerializer<MediaContent>(MediaContent.class, "jboss-marshalling-serial", new SerialMarshallerFactory(), false, false), new SerFeatures(SerFormat.BINARY, SerGraph.FULL_GRAPH, SerClass.ZERO_KNOWLEDGE, ""));
}
Also used : MarshallerFactory(org.jboss.marshalling.MarshallerFactory) RiverMarshallerFactory(org.jboss.marshalling.river.RiverMarshallerFactory) SerialMarshallerFactory(org.jboss.marshalling.serial.SerialMarshallerFactory) SerialMarshallerFactory(org.jboss.marshalling.serial.SerialMarshallerFactory) MediaContent(data.media.MediaContent) RiverMarshallerFactory(org.jboss.marshalling.river.RiverMarshallerFactory)

Aggregations

MediaContent (data.media.MediaContent)1 MarshallerFactory (org.jboss.marshalling.MarshallerFactory)1 RiverMarshallerFactory (org.jboss.marshalling.river.RiverMarshallerFactory)1 SerialMarshallerFactory (org.jboss.marshalling.serial.SerialMarshallerFactory)1