Class ResourceHolder

java.lang.Object
com.storedobject.common.ResourceHolder
All Implemented Interfaces:
ResourceOwner

public class ResourceHolder extends Object implements ResourceOwner
An implementation of a simple ResourceOwner.
Usage note: A reference to the instance of this class must be kept inside the class where the instance is used. Otherwise, the "resource" will be garbage-collected soon because this class instance itself will get garbage-collected.
Author:
Syam