public class ResourceInstance<T> extends Object implements ResourceEntry<T>
SharedResourceFactoryResponse that returns a newly created resource instance.| Constructor and Description |
|---|
ResourceInstance() |
| Modifier and Type | Method and Description |
|---|---|
T |
getResource()
This method returns the resource, but may have logic before the return.
|
boolean |
isValid() |
void |
onInvalidate() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetResourceIfValidpublic T getResource()
getResource in interface ResourceEntry<T>public boolean isValid()
isValid in interface ResourceEntry<T>public void onInvalidate()
onInvalidate in interface ResourceEntry<T>