All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.commons.dataconversion.JavaSerializationEncoder Maven / Gradle / Ivy

There is a newer version: 15.1.0.Dev04
Show newest version
package org.infinispan.commons.dataconversion;

import org.infinispan.commons.configuration.ClassAllowList;
import org.infinispan.commons.marshall.JavaSerializationMarshaller;

/**
 * Encoder based on the default java serialization.
 *
 * @since 9.1
 * @deprecated Since 11.0, will be removed in 14.0. Set the storage media type and use transcoding instead.
 */
@Deprecated(forRemoval=true, since = "11.0")
public class JavaSerializationEncoder extends MarshallerEncoder {

   public JavaSerializationEncoder(ClassAllowList classAllowList) {
      super(new JavaSerializationMarshaller(classAllowList));
   }

   @Override
   public MediaType getStorageFormat() {
      return MediaType.APPLICATION_SERIALIZED_OBJECT;
   }

   @Override
   public short id() {
      return EncoderIds.JAVA_SERIALIZATION;
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy