/** Creates an instance of this class.
*@param obj XWeak implementation
*/
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);
}
}