Class DefaultKryoCustomizer

java.lang.Object
com.broadleafcommerce.data.tracking.core.mapping.cache.DefaultKryoCustomizer
All Implemented Interfaces:
KryoCustomizer, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware

public class DefaultKryoCustomizer extends Object implements KryoCustomizer, org.springframework.beans.factory.BeanClassLoaderAware
Default implementation of KryoCustomizer
Author:
Jeff Fischer
  • Constructor Details

    • DefaultKryoCustomizer

      public DefaultKryoCustomizer()
  • Method Details

    • setBeanClassLoader

      public void setBeanClassLoader(ClassLoader classLoader)
      Specified by:
      setBeanClassLoader in interface org.springframework.beans.factory.BeanClassLoaderAware
    • customize

      public void customize(com.esotericsoftware.kryo.kryo5.Kryo kryo, Class<?>[] entities)
      Description copied from interface: KryoCustomizer
      Customize the Kryo instance
      Specified by:
      customize in interface KryoCustomizer
      Parameters:
      kryo - The instance to customize
      entities - The list of entities detected by the system as currently registered with the ORM. This is useful for explicit registration in Kryo, as Kryo is generally used in the context of serialization duties related to entity handling.
    • basicEntity

      protected void basicEntity(com.esotericsoftware.kryo.kryo5.Kryo kryo, Class<?>[] entities)
    • basicSetting

      protected void basicSetting(com.esotericsoftware.kryo.kryo5.Kryo kryo)
    • basicRegistrations

      protected void basicRegistrations(com.esotericsoftware.kryo.kryo5.Kryo kryo)
    • basicSerializer

      protected void basicSerializer(com.esotericsoftware.kryo.kryo5.Kryo kryo)