public class DefaultKryoCustomizer extends Object implements KryoCustomizer, org.springframework.beans.factory.BeanClassLoaderAware
KryoCustomizer
Constructor and Description |
---|
DefaultKryoCustomizer(com.broadleafcommerce.common.extension.TypeFactory typeFactory) |
Modifier and Type | Method and 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 instance
|
void |
setBeanClassLoader(ClassLoader classLoader) |
public DefaultKryoCustomizer(com.broadleafcommerce.common.extension.TypeFactory typeFactory)
public void setBeanClassLoader(ClassLoader classLoader)
setBeanClassLoader
in interface org.springframework.beans.factory.BeanClassLoaderAware
public void customize(com.esotericsoftware.kryo.kryo5.Kryo kryo, Class<?>[] entities)
KryoCustomizer
customize
in interface KryoCustomizer
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.protected void basicEntity(com.esotericsoftware.kryo.kryo5.Kryo kryo, Class<?>[] entities)
protected void basicSetting(com.esotericsoftware.kryo.kryo5.Kryo kryo)
protected void basicRegistrations(com.esotericsoftware.kryo.kryo5.Kryo kryo)
protected void basicSerializer(com.esotericsoftware.kryo.kryo5.Kryo kryo)
Copyright © 2021. All rights reserved.