public abstract class WeakResource extends WeakReference
Modifier | Constructor and Description |
---|---|
protected |
WeakResource(Object forOwner) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
cleared()
This is called when the owner object has been garbage collected.
|
Object |
getResourceOwner()
Return the owner of the resources - unless the owner is no longer being
referred to by any other strong references and may have been garbage
collected.
|
protected WeakResource(Object forOwner)
public Object getResourceOwner()
protected abstract void cleared()