public abstract class MarshallerContextAdapter extends Object implements MarshallerContext
| Constructor and Description |
|---|
MarshallerContextAdapter(List<PluginProvider> plugins)
Initializes context.
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkHasClassName(String clsName,
ClassLoader ldr,
String fileName) |
protected abstract String |
className(int id)
Gets class name by type ID.
|
Class |
getClass(int id,
ClassLoader ldr)
Gets class for provided type ID.
|
boolean |
isSystemType(String typeName)
Checks whether the given type is a system one - JDK class or Ignite class.
|
boolean |
registerClass(int id,
Class cls)
Registers class with provided type ID.
|
protected abstract boolean |
registerClassName(int id,
String clsName)
Registers class name.
|
public MarshallerContextAdapter(@Nullable
List<PluginProvider> plugins)
plugins - Plugins.public void checkHasClassName(String clsName, ClassLoader ldr, String fileName)
clsName - Class name.ldr - Class loader used to get properties file.fileName - File name.public boolean registerClass(int id,
Class cls)
throws IgniteCheckedException
registerClass in interface MarshallerContextid - Type ID.cls - Class.IgniteCheckedException - In case of error.public Class getClass(int id, ClassLoader ldr) throws ClassNotFoundException, IgniteCheckedException
getClass in interface MarshallerContextid - Type ID.ldr - Class loader.ClassNotFoundException - If class was not found.IgniteCheckedException - In case of any other error.public boolean isSystemType(String typeName)
isSystemType in interface MarshallerContexttypeName - Type name.true if the type is a system one, false otherwise.protected abstract boolean registerClassName(int id,
String clsName)
throws IgniteCheckedException
id - Type ID.clsName - Class name.IgniteCheckedException - In case of error.protected abstract String className(int id) throws IgniteCheckedException
id - Type ID.IgniteCheckedException - In case of error.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.7.0 Release Date : August 1 2016