    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Interface w3c.jigsaw.resources.ResourceLocker

public interface ResourceLocker
extends Object

The interface that you should implement if you keep a pointer to a resource. As resources may be flushed from memory by the ResourceStoreManager, you should implement this interface if you want to keep a pointer to some resource.

This interface will notify you if ever the resource gets unload so that you can get rid of your pointer to the resource, or reload it.

##

notifyResourceLockBreak(Resource)
  Notify that the lock is going down.

##

notifyResourceLockBreak

      public abstract void notifyResourceLockBreak(Resource resource)

  Notify that the lock is going down.
  Parameters:
    resource - The resource whose lock is going down.

    All Packages  Class Hierarchy  This Package  Previous  Next  Index