|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IJIUnreferenced
Implement this interface receive notifications for IJIComObject
s when
they get garbage collected. This also means that the actual interface reference on
the COM server have a reference count of 0 and will get garbage collected itself by
COM runtime.
One note of caution, the IJIComObject
is uniquely identified across the
client-server relationship by it's IPID
. The IPID
should be used
as a key to store a relevant "action" object when unReferenced
method of this
interface is invoked. If the IJIComObject
is stored at a place solely for the
purpose of this housekeeping than it will NEVER get garbage collected by the framework as
the logic of collection is based on weak references.
comObject.registerUnreferencedHandler(session, new IJIUnreferenced(){
public void unReferenced()
{
//do something here
}
});
Method Summary | |
---|---|
void |
unReferenced()
Called when the IJIComObject associated with this interface is garbage collected by the framework. |
Method Detail |
---|
void unReferenced()
IJIComObject
associated with this interface is garbage collected by the framework.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |