public abstract class AbstractKryoInstanceFactory extends Object implements KryoInstanceFactory
KryoInstanceFactory that lets subclases to provide a different ClassResolver| Constructor and Description |
|---|
AbstractKryoInstanceFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract com.esotericsoftware.kryo.ClassResolver |
getClassResolver(Optional<org.mule.runtime.module.artifact.api.classloader.ClassLoaderRepository> classLoaderRepository) |
com.esotericsoftware.kryo.Kryo |
getInstance(org.mule.runtime.core.api.MuleContext muleContext,
Optional<org.mule.runtime.module.artifact.api.classloader.ClassLoaderRepository> classLoaderRepository)
Returns the Kryo instance from this factory.
|
public com.esotericsoftware.kryo.Kryo getInstance(org.mule.runtime.core.api.MuleContext muleContext,
Optional<org.mule.runtime.module.artifact.api.classloader.ClassLoaderRepository> classLoaderRepository)
throws Exception
KryoInstanceFactorygetInstance in interface KryoInstanceFactorymuleContext - context that owns the created instance. Non null.classLoaderRepository - contains all the class loaders in the container.Exception - in case of problem registering custom serializersprotected abstract com.esotericsoftware.kryo.ClassResolver getClassResolver(Optional<org.mule.runtime.module.artifact.api.classloader.ClassLoaderRepository> classLoaderRepository)
classLoaderRepository - contains all the class loaders in the container.Copyright © 2006–2022 MuleSoft, Inc.. All rights reserved.