Class PlainJavaSerializer<T>

java.lang.Object
org.ehcache.impl.serialization.PlainJavaSerializer<T>
All Implemented Interfaces:
org.ehcache.spi.serialization.Serializer<T>

public class PlainJavaSerializer<T> extends Object implements org.ehcache.spi.serialization.Serializer<T>
Plain Java serialization based serializer.
  • Constructor Details

    • PlainJavaSerializer

      public PlainJavaSerializer(ClassLoader classLoader)
  • Method Details

    • serialize

      public ByteBuffer serialize(T object)
      Specified by:
      serialize in interface org.ehcache.spi.serialization.Serializer<T>
    • read

      public T read(ByteBuffer entry) throws org.ehcache.spi.serialization.SerializerException, ClassNotFoundException
      Specified by:
      read in interface org.ehcache.spi.serialization.Serializer<T>
      Throws:
      org.ehcache.spi.serialization.SerializerException
      ClassNotFoundException
    • equals

      public boolean equals(T object, ByteBuffer binary) throws org.ehcache.spi.serialization.SerializerException, ClassNotFoundException
      Specified by:
      equals in interface org.ehcache.spi.serialization.Serializer<T>
      Throws:
      org.ehcache.spi.serialization.SerializerException
      ClassNotFoundException