public WeakReference(Object obj)
{
XWeak weak= (XWeak) UnoRuntime.queryInterface(XWeak.class, obj);
if (weak != null)
{
XAdapter adapter= (XAdapter) weak.queryAdapter();
if (adapter != null)
m_listener= new OWeakRefListener(adapter);
}
}
/** Returns a hard reference to the object that is kept weak by this class.