Class AbstractResourceHandle
java.lang.Object
uno.anahata.asi.agi.resource.handle.AbstractResourceHandle
- All Implemented Interfaces:
ResourceHandle, Rebindable
- Direct Known Subclasses:
NbHandle, PathHandle, StringHandle, UrlHandle
Base implementation of
ResourceHandle providing common owner management.
This class centralizes the back-reference to the parent Resource,
ensuring that all handle implementations can trigger reactive reloads via
owner.markDirty().
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidrebind()Re-initializes the object's state after deserialization.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ResourceHandle
asBytes, asText, dispose, exists, getCharset, getHeader, getHtmlDisplayName, getLastModified, getMimeType, getName, getOwner, getUri, isModified, isStale, isTextual, isVirtual, isWritable, length, openStream, setOwner, write
-
Field Details
-
owner
The parent resource orchestrator. We don't mark this transient because Kryo handles circular references automatically, preserving the bidirectional link during persistence.
-
-
Constructor Details
-
AbstractResourceHandle
public AbstractResourceHandle()
-
-
Method Details
-
rebind
public void rebind()Re-initializes the object's state after deserialization.- Specified by:
rebindin interfaceRebindable
-

