public class ProxyDescriptorImpl extends Object implements TypeProxy, Serializable
RemoteClient
and which is linked to a RemoteServer
.InstanceIdAccessor.InstanceIdMutator, InstanceIdAccessor.InstanceIdProperty
org.refcodes.mixin.TypeAccessor.TypeMutator, org.refcodes.mixin.TypeAccessor.TypeProperty
ProxyAccessor.ProxyMutator, ProxyAccessor.ProxyProperty
Constructor and Description |
---|
ProxyDescriptorImpl()
Creates a new ProxyDescriptor object.
|
ProxyDescriptorImpl(Object aProxy,
Class<?> aType,
String aInstanceId)
Creates a new
TypeProxy object. |
ProxyDescriptorImpl(TypeInstance aClassDescriptor,
Object aProxy)
Creates a new
TypeProxy object. |
Modifier and Type | Method and Description |
---|---|
String |
getInstanceId()
Retrieves the instance ID from the instance ID property.
|
<P> P |
getProxy()
Retrieves the proxy from the proxy property.
|
Class<?> |
getType() |
String |
toString() |
public ProxyDescriptorImpl()
public ProxyDescriptorImpl(Object aProxy, Class<?> aType, String aInstanceId)
TypeProxy
object.aProxy
- The proxy in question.aType
- The type of the proxy in question.aInstanceId
- The instance ID assigned to the proxy in question.public ProxyDescriptorImpl(TypeInstance aClassDescriptor, Object aProxy)
TypeProxy
object.aClassDescriptor
- The descriptor describing the class of the proxy
in question.aProxy
- The proxy in question.public String getInstanceId()
InstanceIdAccessor
getInstanceId
in interface InstanceIdAccessor
public Class<?> getType()
getType
in interface org.refcodes.mixin.TypeAccessor
public <P> P getProxy()
ProxyAccessor
getProxy
in interface ProxyAccessor
P
- The expected type of the proxy.Copyright © 2016. All rights reserved.