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 ofKryoCustomizer- Author:
- Jeff Fischer
-
-
Constructor Summary
Constructors Constructor Description DefaultKryoCustomizer(com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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(com.esotericsoftware.kryo.kryo5.Kryo kryo, Class<?>[] entities)Customize the Kryo instancevoidsetBeanClassLoader(ClassLoader classLoader)
-
-
-
Method Detail
-
setBeanClassLoader
public void setBeanClassLoader(ClassLoader classLoader)
- Specified by:
setBeanClassLoaderin interfaceorg.springframework.beans.factory.BeanClassLoaderAware
-
customize
public void customize(com.esotericsoftware.kryo.kryo5.Kryo kryo, Class<?>[] entities)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
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)
-
-