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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
basicEntity
(com.esotericsoftware.kryo.kryo5.Kryo kryo, Class<?>[] entities) protected void
basicRegistrations
(com.esotericsoftware.kryo.kryo5.Kryo kryo) protected void
basicSerializer
(com.esotericsoftware.kryo.kryo5.Kryo kryo) protected void
basicSetting
(com.esotericsoftware.kryo.kryo5.Kryo kryo) void
Customize the Kryo instancevoid
setBeanClassLoader
(ClassLoader classLoader)
-
Constructor Details
-
DefaultKryoCustomizer
public DefaultKryoCustomizer()
-
-
Method Details
-
setBeanClassLoader
- Specified by:
setBeanClassLoader
in interfaceorg.springframework.beans.factory.BeanClassLoaderAware
-
customize
Description copied from interface:KryoCustomizer
Customize the Kryo instance- Specified by:
customize
in interfaceKryoCustomizer
- Parameters:
kryo
- The instance to customizeentities
- 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
-
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)
-