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()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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(com.esotericsoftware.kryo.kryo5.Kryo kryo, Class<?>[] entities)
Customize the Kryo instancevoid
setBeanClassLoader(ClassLoader classLoader)
-
-
-
Method Detail
-
setBeanClassLoader
public void setBeanClassLoader(ClassLoader classLoader)
- Specified by:
setBeanClassLoader
in interfaceorg.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 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)
-
-