(incubating) | The Free and Open Productivity Suite
UNO Java Runtime

com.sun.star.uno
Class WeakReference

java.lang.Object
  |
  +--com.sun.star.uno.WeakReference

public class WeakReference
extends java.lang.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(java.lang.Object obj)
          Creates an instance of this class.
WeakReference(WeakReference obj)
          Creates an instance of this class.
 
Method Summary
 java.lang.Object get()
          Returns a hard reference to the object that is kept weak by this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WeakReference

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

Parameters:
obj - - another instance that is to be copied

WeakReference

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

Parameters:
obj - XWeak implementation
Method Detail

get

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

Returns:
a hard reference to the XWeak implementation.

UNO Java Runtime

Apache OpenOffice is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.

Copyright & License
Apache and the Apache feather logos are trademarks of The Apache Software Foundation. OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.