|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectmandala.jacob.remote.AbstractRemote
mandala.jacob.remote.AbstractLocalReferenceRetriever
Abstract base class for local reference retriever remote objects implementation.
This class manage the behaviour of the getLocalReference()
method through its constructors and its finalize()
method. Hence, subclasses must ensure that super.finalize() is
called in order to prevent memory leak.
| Nested Class Summary |
| Nested classes inherited from class mandala.jacob.remote.AbstractRemote |
AbstractRemote.ExceptionInfo |
| Field Summary |
| Fields inherited from class mandala.jacob.remote.AbstractRemote |
defaultExceptionHandler, exceptionHandler, syslog |
| Constructor Summary | |
protected |
AbstractLocalReferenceRetriever(Object localReference)
Creates a new AbstractLocalReferenceRetriever. |
protected |
AbstractLocalReferenceRetriever(Object localReference,
ExceptionHandler exceptionHandler)
Creates a new LocalReferenceRetriever. |
| Method Summary | |
protected void |
finalize()
|
Object |
getID()
Returns the global unique identifier of this remote instance. |
Object |
getLocalReference()
Returns a local reference on the object this remote
reference is refering to. |
String |
toString()
|
| Methods inherited from class mandala.jacob.remote.AbstractRemote |
getDefaultExceptionHandler, getExceptionHandler, getSyslog, handleException, setDefaultExceptionHandler, setExceptionHandler, setSyslog |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface mandala.jacob.remote.Remote |
getExceptionHandler, setExceptionHandler |
| Constructor Detail |
protected AbstractLocalReferenceRetriever(Object localReference)
Creates a new AbstractLocalReferenceRetriever.
The ExceptionHandler to use when an exception occurs is
set to a new SyslogExceptionHandler instance.
localReference - the local reference this object is referring to
IllegalArgumentException - if localReference is an
ExceptionHandler or is nullSyslogExceptionHandler
protected AbstractLocalReferenceRetriever(Object localReference,
ExceptionHandler exceptionHandler)
Creates a new LocalReferenceRetriever.
localReference - the local reference this object is referring toexceptionHandler - The ExceptionHandler to use when a
remote exception occurs.ExceptionHandler,
if localReference is
null| Method Detail |
protected void finalize()
throws Throwable
Throwablepublic Object getLocalReference()
LocalReferenceRetrieverReturns a local reference on the object this remote
reference is refering to.
Note that the caller must be on the same JVM than the local object in
order to get a valid return, otherwise, null is
returned.
getLocalReference in interface LocalReferenceRetrieverpublic Object getID()
LocalReferenceRetrieverReturns the global unique identifier of this remote instance.
getID in interface LocalReferenceRetrieverpublic String toString()
toString in class AbstractRemote
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||