to.etc.domui.util.resources
Class FakeModifyableResource

java.lang.Object
  extended by to.etc.domui.util.resources.FakeModifyableResource
All Implemented Interfaces:
IIsModified

public final class FakeModifyableResource
extends java.lang.Object
implements IIsModified

This can be added to a ResourceDependencyList, and can be marked as "changed" by some event, causing all dependent resources to reload in debug mode.

Author:
Frits Jalvingh Created on Jan 10, 2011

Constructor Summary
FakeModifyableResource()
          Create the resource with a current timestamp.
 
Method Summary
 boolean isModified()
          Returns T if this resource has been modified.
 void markChanged()
          Mark this resource as "changed" by changing the "timestamp".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FakeModifyableResource

public FakeModifyableResource()
Create the resource with a current timestamp.

Method Detail

isModified

public boolean isModified()
Description copied from interface: IIsModified
Returns T if this resource has been modified. Must be thread-safe.

Specified by:
isModified in interface IIsModified
Returns:

markChanged

public void markChanged()
Mark this resource as "changed" by changing the "timestamp". When the resource dependency list this belongs to is queried this will notify this as changed which should prompt a reload.