public interface ClassResolver
| Modifier and Type | Method and Description | 
|---|---|
Registration | 
getRegistration(java.lang.Class type)
Returns the registration for the specified class, or null if the class is not registered. 
 | 
Registration | 
getRegistration(int classID)
Returns the registration for the specified ID, or null if no class is registered with that ID. 
 | 
Registration | 
readClass(Input input)
Reads a class and returns its registration. 
 | 
Registration | 
register(Registration registration)
Stores the specified registration. 
 | 
Registration | 
registerImplicit(java.lang.Class type)
Called when an unregistered type is encountered and  
Kryo.setRegistrationRequired(boolean) is false. | 
void | 
reset()
Called by  
Kryo.reset(). | 
void | 
setKryo(Kryo kryo)
Sets the Kryo instance that this ClassResolver will be used for. 
 | 
Registration | 
writeClass(Output output,
          java.lang.Class type)
Writes a class and returns its registration. 
 | 
void setKryo(Kryo kryo)
Registration register(Registration registration)
Kryo.register(Registration)Registration registerImplicit(java.lang.Class type)
Kryo.setRegistrationRequired(boolean) is false.Registration getRegistration(java.lang.Class type)
Registration getRegistration(int classID)
Registration writeClass(Output output, java.lang.Class type)
type - May be null.Registration readClass(Input input)
void reset()
Kryo.reset().