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.InstanceIdPropertyNested 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
ConstructorsConstructorDescriptionCreates a new ClassDescriptor object.ClassDescriptor(Class<?> aClass, String aInstanceId) Constructs aClassDescriptorinstance with the given attributes.ClassDescriptor(ClassDescriptor aClassDescriptor) Constructs aClassDescriptorinstance from the providedClassDescriptorinstance. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidclear()Same asClearable.clear().Class<?>getType()protected voidSets the class.protected voidsetClassDescriptor(ClassDescriptor classDescriptor) Sets the class descriptor.protected voidsetInstanceId(String instanceId) Sets the instance id.toString()
-
Constructor Details
-
ClassDescriptor
public ClassDescriptor()Creates a new ClassDescriptor object. -
ClassDescriptor
Constructs aClassDescriptorinstance with the given attributes.- Parameters:
aClass- The class for the subject in question.aInstanceId- The instance TID of the subject in question.
-
ClassDescriptor
Constructs aClassDescriptorinstance from the providedClassDescriptorinstance.- Parameters:
aClassDescriptor- TheClassDescriptorproviding the instance ID and the type.
-
-
Method Details
-
getInstanceId
- Specified by:
getInstanceIdin interfaceorg.refcodes.mixin.InstanceIdAccessor
-
getType
- Specified by:
getTypein interfaceorg.refcodes.mixin.TypeAccessor
-
toString
-
setClass
Sets the class.- Parameters:
type- Description is currently not available!
-
setClassDescriptor
Sets the class descriptor.- Parameters:
classDescriptor- Description is currently not available!
-
setInstanceId
Sets the instance id.- Parameters:
instanceId- Description is currently not available!
-
clear
protected void clear()Same asClearable.clear().
-