public class NullDeserializationKernel extends java.lang.Object implements DeserializationKernel
DeserializationKernel that throws UnsupportedOperationException
for every operation. Using this implementation is sufficient for scenarios without
RMI/IIOP and avoids the neccessity to create a platform dependent kernel. See
DeserializationKernelFactory why a DeserializationKernel is required for RMI/IIOP.| Constructor and Description |
|---|
NullDeserializationKernel() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
allocateNewObject(java.lang.Class c,
java.lang.Class base)
This class allocates an instance of a class.
|
void |
setBooleanField(java.lang.Class c,
java.lang.String n,
java.lang.Object o,
boolean v)
Set the member field of a class instance.
|
void |
setByteField(java.lang.Class c,
java.lang.String n,
java.lang.Object o,
byte v)
Set the member field of a class instance.
|
void |
setCharField(java.lang.Class c,
java.lang.String n,
java.lang.Object o,
char v)
Set the member field of a class instance.
|
void |
setDoubleField(java.lang.Class c,
java.lang.String n,
java.lang.Object o,
double v)
Set the member field of a class instance.
|
void |
setFloatField(java.lang.Class c,
java.lang.String n,
java.lang.Object o,
float v)
Set the member field of a class instance.
|
void |
setIntField(java.lang.Class c,
java.lang.String n,
java.lang.Object o,
int v)
Set the member field of a class instance.
|
void |
setLongField(java.lang.Class c,
java.lang.String n,
java.lang.Object o,
long v)
Set the member field of a class instance.
|
void |
setObjectField(java.lang.Class c,
java.lang.String n,
java.lang.Object o,
java.lang.Object v)
Set the member field of a class instance.
|
void |
setShortField(java.lang.Class c,
java.lang.String n,
java.lang.Object o,
short v)
Set the member field of a class instance.
|
public java.lang.Object allocateNewObject(java.lang.Class c,
java.lang.Class base)
throws java.lang.InstantiationException,
java.lang.IllegalAccessException
DeserializationKernelallocateNewObject in interface DeserializationKernelc - The class to allocate memory for.base - The enclosing class when c is a non-static inner class.java.lang.InstantiationException - When the object can be instantiated.java.lang.IllegalAccessException - When the object can't be accessed.public void setObjectField(java.lang.Class c,
java.lang.String n,
java.lang.Object o,
java.lang.Object v)
DeserializationKernelsetObjectField in interface DeserializationKernelc - The type of the class.n - The name of the member field.o - The instance of the class c.v - The value to assign to the field n on instance o.public void setBooleanField(java.lang.Class c,
java.lang.String n,
java.lang.Object o,
boolean v)
DeserializationKernelsetBooleanField in interface DeserializationKernelc - The type of the class.n - The name of the member field.o - The instance of the class c.v - The value to assign to the field n on instance o.public void setByteField(java.lang.Class c,
java.lang.String n,
java.lang.Object o,
byte v)
DeserializationKernelsetByteField in interface DeserializationKernelc - The type of the class.n - The name of the member field.o - The instance of the class c.v - The value to assign to the field n on instance o.public void setCharField(java.lang.Class c,
java.lang.String n,
java.lang.Object o,
char v)
DeserializationKernelsetCharField in interface DeserializationKernelc - The type of the class.n - The name of the member field.o - The instance of the class c.v - The value to assign to the field n on instance o.public void setShortField(java.lang.Class c,
java.lang.String n,
java.lang.Object o,
short v)
DeserializationKernelsetShortField in interface DeserializationKernelc - The type of the class.n - The name of the member field.o - The instance of the class c.v - The value to assign to the field n on instance o.public void setIntField(java.lang.Class c,
java.lang.String n,
java.lang.Object o,
int v)
DeserializationKernelsetIntField in interface DeserializationKernelc - The type of the class.n - The name of the member field.o - The instance of the class c.v - The value to assign to the field n on instance o.public void setLongField(java.lang.Class c,
java.lang.String n,
java.lang.Object o,
long v)
DeserializationKernelsetLongField in interface DeserializationKernelc - The type of the class.n - The name of the member field.o - The instance of the class c.v - The value to assign to the field n on instance o.public void setFloatField(java.lang.Class c,
java.lang.String n,
java.lang.Object o,
float v)
DeserializationKernelsetFloatField in interface DeserializationKernelc - The type of the class.n - The name of the member field.o - The instance of the class c.v - The value to assign to the field n on instance o.public void setDoubleField(java.lang.Class c,
java.lang.String n,
java.lang.Object o,
double v)
DeserializationKernelsetDoubleField in interface DeserializationKernelc - The type of the class.n - The name of the member field.o - The instance of the class c.v - The value to assign to the field n on instance o.