Class ClassDescriptor

java.lang.Object
org.refcodes.remoting.ClassDescriptor
All Implemented Interfaces:
Serializable, org.refcodes.mixin.InstanceIdAccessor, org.refcodes.mixin.TypeAccessor, InstanceId

public class ClassDescriptor extends Object implements InstanceId, org.refcodes.mixin.TypeAccessor, Serializable
The most common information to be provided when describing an object residing in a RemoteServer and which is linked to a RemoteClient. The RemoteServer creates this descriptor and passes it to the RemoteClient, the RemoteClient attaches this information to a ProxyDescriptor describing its proxy instances.
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.refcodes.mixin.InstanceIdAccessor

    org.refcodes.mixin.InstanceIdAccessor.InstanceIdBuilder<B extends org.refcodes.mixin.InstanceIdAccessor.InstanceIdBuilder<B>>, org.refcodes.mixin.InstanceIdAccessor.InstanceIdMutator, org.refcodes.mixin.InstanceIdAccessor.InstanceIdProperty

    Nested classes/interfaces inherited from interface org.refcodes.mixin.TypeAccessor

    org.refcodes.mixin.TypeAccessor.TypeBuilder<T extends Object,B extends org.refcodes.mixin.TypeAccessor.TypeBuilder<T,B>>, org.refcodes.mixin.TypeAccessor.TypeMutator<T extends Object>, org.refcodes.mixin.TypeAccessor.TypeProperty<T extends Object>
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new ClassDescriptor object.
    ClassDescriptor(Class<?> aClass, String aInstanceId)
    Constructs a ClassDescriptor instance with the given attributes.
    ClassDescriptor(ClassDescriptor aClassDescriptor)
    Constructs a ClassDescriptor instance from the provided ClassDescriptor instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    Same as Clearable.clear().
    protected void
    setClass(Class<?> type)
    Sets the class.
    protected void
    Sets the class descriptor.
    protected void
    setInstanceId(String instanceId)
    Sets the instance id.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ClassDescriptor

      public ClassDescriptor()
      Creates a new ClassDescriptor object.
    • ClassDescriptor

      public ClassDescriptor(Class<?> aClass, String aInstanceId)
      Constructs a ClassDescriptor instance with the given attributes.
      Parameters:
      aClass - The class for the subject in question.
      aInstanceId - The instance ID of the subject in question.
    • ClassDescriptor

      public ClassDescriptor(ClassDescriptor aClassDescriptor)
      Constructs a ClassDescriptor instance from the provided ClassDescriptor instance.
      Parameters:
      aClassDescriptor - The ClassDescriptor providing the instance ID and the type.
  • Method Details

    • getInstanceId

      public String getInstanceId()
      Specified by:
      getInstanceId in interface org.refcodes.mixin.InstanceIdAccessor
    • getType

      public Class<?> getType()
      Specified by:
      getType in interface org.refcodes.mixin.TypeAccessor
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setClass

      protected void setClass(Class<?> type)
      Sets the class.
      Parameters:
      type - Description is currently not available!
    • setClassDescriptor

      protected void setClassDescriptor(ClassDescriptor classDescriptor)
      Sets the class descriptor.
      Parameters:
      classDescriptor - Description is currently not available!
    • setInstanceId

      protected void setInstanceId(String instanceId)
      Sets the instance id.
      Parameters:
      instanceId - Description is currently not available!
    • clear

      protected void clear()
      Same as Clearable.clear().