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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbasicEntity(com.esotericsoftware.kryo.kryo5.Kryo kryo, Class<?>[] entities) protected voidbasicRegistrations(com.esotericsoftware.kryo.kryo5.Kryo kryo) protected voidbasicSerializer(com.esotericsoftware.kryo.kryo5.Kryo kryo) protected voidbasicSetting(com.esotericsoftware.kryo.kryo5.Kryo kryo) voidCustomize the Kryo instancevoidsetBeanClassLoader(ClassLoader classLoader)
-
Constructor Details
-
DefaultKryoCustomizer
public DefaultKryoCustomizer()
-
-
Method Details
-
setBeanClassLoader
- Specified by:
setBeanClassLoaderin interfaceorg.springframework.beans.factory.BeanClassLoaderAware
-
customize
Description copied from interface:KryoCustomizerCustomize the Kryo instance- Specified by:
customizein 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)
-