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
ConstructorDescriptionCreates a new ClassDescriptor object.ClassDescriptor
(Class<?> aClass, String aInstanceId) Constructs aClassDescriptor
instance with the given attributes.ClassDescriptor
(ClassDescriptor aClassDescriptor) Constructs aClassDescriptor
instance from the providedClassDescriptor
instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
clear()
Same asClearable.clear()
.Class<?>
getType()
protected void
Sets the class.protected void
setClassDescriptor
(ClassDescriptor classDescriptor) Sets the class descriptor.protected void
setInstanceId
(String instanceId) Sets the instance id.toString()
-
Constructor Details
-
ClassDescriptor
public ClassDescriptor()Creates a new ClassDescriptor object. -
ClassDescriptor
Constructs aClassDescriptor
instance with the given attributes.- Parameters:
aClass
- The class for the subject in question.aInstanceId
- The instance ID of the subject in question.
-
ClassDescriptor
Constructs aClassDescriptor
instance from the providedClassDescriptor
instance.- Parameters:
aClassDescriptor
- TheClassDescriptor
providing the instance ID and the type.
-
-
Method Details
-
getInstanceId
- Specified by:
getInstanceId
in interfaceorg.refcodes.mixin.InstanceIdAccessor
-
getType
- Specified by:
getType
in 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()
.
-