org.openorb.orb.rmi
Class NullDeserializationKernel

java.lang.Object
  |
  +--org.openorb.orb.rmi.NullDeserializationKernel
All Implemented Interfaces:
DeserializationKernel

public class NullDeserializationKernel
extends java.lang.Object
implements DeserializationKernel

A 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.

Author:
lkuehne

Constructor Summary
NullDeserializationKernel()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullDeserializationKernel

public NullDeserializationKernel()
Method Detail

allocateNewObject

public java.lang.Object allocateNewObject(java.lang.Class c,
                                          java.lang.Class base)
                                   throws java.lang.InstantiationException,
                                          java.lang.IllegalAccessException
Description copied from interface: DeserializationKernel
This class allocates an instance of a class. The method allows allocations that are not possible when using pure Java's newInstance() method.
Specified by:
allocateNewObject in interface DeserializationKernel
Following copied from interface: org.openorb.orb.rmi.DeserializationKernel
Parameters:
c - The class to allocate memory for.
base - The enclosing class when c is a non-static inner class.
Returns:
An instance of class c.
Throws:
java.lang.InstantiationException - When the object can be instantiated.
java.lang.IllegalAccessException - When the object can't be accessed.

setObjectField

public void setObjectField(java.lang.Class c,
                           java.lang.String n,
                           java.lang.Object o,
                           java.lang.Object v)
Description copied from interface: DeserializationKernel
Set the member field of a class instance.
Specified by:
setObjectField in interface DeserializationKernel
Following copied from interface: org.openorb.orb.rmi.DeserializationKernel
Parameters:
c - 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.

setBooleanField

public void setBooleanField(java.lang.Class c,
                            java.lang.String n,
                            java.lang.Object o,
                            boolean v)
Description copied from interface: DeserializationKernel
Set the member field of a class instance.
Specified by:
setBooleanField in interface DeserializationKernel
Following copied from interface: org.openorb.orb.rmi.DeserializationKernel
Parameters:
c - 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.

setByteField

public void setByteField(java.lang.Class c,
                         java.lang.String n,
                         java.lang.Object o,
                         byte v)
Description copied from interface: DeserializationKernel
Set the member field of a class instance.
Specified by:
setByteField in interface DeserializationKernel
Following copied from interface: org.openorb.orb.rmi.DeserializationKernel
Parameters:
c - 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.

setCharField

public void setCharField(java.lang.Class c,
                         java.lang.String n,
                         java.lang.Object o,
                         char v)
Description copied from interface: DeserializationKernel
Set the member field of a class instance.
Specified by:
setCharField in interface DeserializationKernel
Following copied from interface: org.openorb.orb.rmi.DeserializationKernel
Parameters:
c - 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.

setShortField

public void setShortField(java.lang.Class c,
                          java.lang.String n,
                          java.lang.Object o,
                          short v)
Description copied from interface: DeserializationKernel
Set the member field of a class instance.
Specified by:
setShortField in interface DeserializationKernel
Following copied from interface: org.openorb.orb.rmi.DeserializationKernel
Parameters:
c - 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.

setIntField

public void setIntField(java.lang.Class c,
                        java.lang.String n,
                        java.lang.Object o,
                        int v)
Description copied from interface: DeserializationKernel
Set the member field of a class instance.
Specified by:
setIntField in interface DeserializationKernel
Following copied from interface: org.openorb.orb.rmi.DeserializationKernel
Parameters:
c - 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.

setLongField

public void setLongField(java.lang.Class c,
                         java.lang.String n,
                         java.lang.Object o,
                         long v)
Description copied from interface: DeserializationKernel
Set the member field of a class instance.
Specified by:
setLongField in interface DeserializationKernel
Following copied from interface: org.openorb.orb.rmi.DeserializationKernel
Parameters:
c - 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.

setFloatField

public void setFloatField(java.lang.Class c,
                          java.lang.String n,
                          java.lang.Object o,
                          float v)
Description copied from interface: DeserializationKernel
Set the member field of a class instance.
Specified by:
setFloatField in interface DeserializationKernel
Following copied from interface: org.openorb.orb.rmi.DeserializationKernel
Parameters:
c - 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.

setDoubleField

public void setDoubleField(java.lang.Class c,
                           java.lang.String n,
                           java.lang.Object o,
                           double v)
Description copied from interface: DeserializationKernel
Set the member field of a class instance.
Specified by:
setDoubleField in interface DeserializationKernel
Following copied from interface: org.openorb.orb.rmi.DeserializationKernel
Parameters:
c - 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.