public interface IProxyBase
Modifier and Type | Method and Description |
---|---|
TestDomainImplementation |
getTestDomain()
Returns the
TestDomain that this proxy object is associated
with. |
java.lang.String |
getTestObjectClassName()
Returns a valid class name specification.
|
boolean |
isValidObject()
Returns
true if the underlying object is still valid. |
TestDomainImplementation getTestDomain()
TestDomain
that this proxy object is associated
with.TestDomain
class full name.java.lang.String getTestObjectClassName()
TestObject
class. The testObject
performs a cross-process (and cross-JVM) call to the
same method against an associated proxy, which is this proxy.
This method should never return null
, even if shouldBeMapped()
returns false
. User may still access objects such as this through
scripting method calls and can return references to them.
If a null were returned, the marshalling code would be confused and would not
be able to construct a test object.
This method may be called from any thread.
testObject
class full name.boolean isValidObject()
true
if the underlying object is still valid.
This method is called by the framework when the proxy is being
invoked through reflection. In some domains, the proxies access to the
underlying object may not be guaranteed, but there may be some checks
that could be used to safeguard the proxy. For example, in Microsoft
Windows, a proxy that wrapped an HWND-based object might want to validate
that the HWND was still correct. It might do this by checking the window
classname, the thread to which the window belongs, and the validity of the
window handle itself. The default implementation just returns true.
If this returns false, subsequent calls to the object may be blocked.true
if the underlying object is valid.