public class ReflectingInstantiator extends KryoInstantiator
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_REGISTRATIONS
DEFAULT_REGISTRATIONS holds a colon-separated list of classes or interfaces to register
with Kryo.
|
static java.lang.String |
INSTANTIATOR_STRATEGY_CLASS
Name of the InstatiatorStrategy to use.
|
static java.lang.String |
INSTANTIATOR_STRATEGY_CLASS_DEFAULT |
static java.lang.String |
KRYO_CLASS
Name of the subclass of kryo to instantiate to start with.
|
static java.lang.String |
KRYO_CLASS_DEFAULT |
static java.lang.String |
prefix
All keys are prefixed with this string
|
static java.lang.String |
REGISTRATION_REQUIRED
If REGISTRATION_REQUIRED is set to false, Kryo will try to serialize all java objects, not just those
with custom serializations registered.
|
static boolean |
REGISTRATION_REQUIRED_DEFAULT |
static java.lang.String |
REGISTRATIONS
KRYO_REGISTRATIONS holds a colon-separated list of classes to register with Kryo.
|
static java.lang.String |
SKIP_MISSING
If SKIP_MISSING is set to false, Kryo will throw an error when Cascading tries to register
a class or serialization that doesn't exist.
|
static boolean |
SKIP_MISSING_DEFAULT |
Constructor and Description |
---|
ReflectingInstantiator(java.lang.Class<? extends com.esotericsoftware.kryo.Kryo> kryoClass,
java.lang.Class<? extends org.objenesis.strategy.InstantiatorStrategy> stratClass,
java.lang.Iterable<ClassRegistrar> classRegistrations,
java.lang.Iterable<ReflectingRegistrar> registrations,
java.lang.Iterable<ReflectingDefaultRegistrar> defaults,
boolean regRequired,
boolean skipMissing) |
ReflectingInstantiator(Config conf) |
ReflectingInstantiator(java.lang.Iterable<ClassRegistrar> classRegistrations,
java.lang.Iterable<ReflectingRegistrar> registrations,
java.lang.Iterable<ReflectingDefaultRegistrar> defaults)
Create an instance using the defaults for non-listed params
|
Modifier and Type | Method and Description |
---|---|
protected java.util.List<? extends IKryoRegistrar> |
buildRegistrars(java.lang.String base,
boolean isAddDefault) |
boolean |
equals(java.lang.Object that) |
int |
hashCode() |
com.esotericsoftware.kryo.Kryo |
newKryo() |
protected com.esotericsoftware.kryo.Kryo |
newKryoWithEx() |
protected java.lang.String |
registrarsToString(java.lang.Iterable<? extends IKryoRegistrar> registrars) |
void |
set(Config conf) |
setClassLoader, setInstantiatorStrategy, setReferences, setRegistrationRequired, setThreadContextClassLoader, withRegistrar
public static final java.lang.String prefix
public static final java.lang.String KRYO_CLASS
public static final java.lang.String KRYO_CLASS_DEFAULT
public static final java.lang.String INSTANTIATOR_STRATEGY_CLASS
public static final java.lang.String INSTANTIATOR_STRATEGY_CLASS_DEFAULT
public static final java.lang.String REGISTRATIONS
public static final java.lang.String DEFAULT_REGISTRATIONS
public static final java.lang.String SKIP_MISSING
public static final boolean SKIP_MISSING_DEFAULT
public static final java.lang.String REGISTRATION_REQUIRED
public static final boolean REGISTRATION_REQUIRED_DEFAULT
public ReflectingInstantiator(Config conf) throws ConfigurationException
ConfigurationException
public ReflectingInstantiator(java.lang.Iterable<ClassRegistrar> classRegistrations, java.lang.Iterable<ReflectingRegistrar> registrations, java.lang.Iterable<ReflectingDefaultRegistrar> defaults)
public ReflectingInstantiator(java.lang.Class<? extends com.esotericsoftware.kryo.Kryo> kryoClass, java.lang.Class<? extends org.objenesis.strategy.InstantiatorStrategy> stratClass, java.lang.Iterable<ClassRegistrar> classRegistrations, java.lang.Iterable<ReflectingRegistrar> registrations, java.lang.Iterable<ReflectingDefaultRegistrar> defaults, boolean regRequired, boolean skipMissing)
public void set(Config conf) throws ConfigurationException
ConfigurationException
protected com.esotericsoftware.kryo.Kryo newKryoWithEx() throws java.lang.InstantiationException, java.lang.IllegalAccessException
java.lang.InstantiationException
java.lang.IllegalAccessException
public com.esotericsoftware.kryo.Kryo newKryo()
newKryo
in class KryoInstantiator
protected java.util.List<? extends IKryoRegistrar> buildRegistrars(java.lang.String base, boolean isAddDefault) throws ConfigurationException
ConfigurationException
protected java.lang.String registrarsToString(java.lang.Iterable<? extends IKryoRegistrar> registrars) throws ConfigurationException
ConfigurationException
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object that)
equals
in class java.lang.Object