com.sun.star.uno

Class WeakReference


public class WeakReference
extends Object

This class holds weak reference to an object. It actually holds a reference to a com.sun.star.XAdapter implementation and obtains a hard reference if necessary.

Constructor Summary

WeakReference(Object obj)
Creates an instance of this class.
WeakReference(WeakReference obj)
Creates an instance of this class.

Method Summary

Object
get()
Returns a hard reference to the object that is kept weak by this class.

Constructor Details

WeakReference

public WeakReference(Object obj)
Creates an instance of this class.
Parameters:
obj - XWeak implementation

WeakReference

public WeakReference(WeakReference obj)
Creates an instance of this class.
Parameters:
obj - - another instance that is to be copied

Method Details

get

public Object get()
Returns a hard reference to the object that is kept weak by this class.
Returns:
a hard reference to the XWeak implementation.