Class AbstractResourceHandle

java.lang.Object
uno.anahata.asi.agi.resource.handle.AbstractResourceHandle
All Implemented Interfaces:
ResourceHandle, Rebindable
Direct Known Subclasses:
NbHandle, PathHandle, StringHandle, UrlHandle

public abstract class AbstractResourceHandle extends Object implements ResourceHandle
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 Details

    • owner

      protected Resource 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:
      rebind in interface Rebindable