to.etc.domui.themes
Class ThemeModifyableResource

java.lang.Object
  extended by to.etc.domui.themes.ThemeModifyableResource
All Implemented Interfaces:
IIsModified

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

This implements IIsModified to make a theme part of a dependency list. Because a theme can use a lot of files (all fragments and properties etc) we check for changes only every few seconds. This implements that behaviour.

Author:
Frits Jalvingh Created on Jan 10, 2011

Constructor Summary
ThemeModifyableResource(ResourceDependencies rdl, int interval)
          Create a wrapper.
 
Method Summary
 boolean isModified()
          If it's not yet time to check for changes again return false (unchanged), else check the original dependencies.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThemeModifyableResource

public ThemeModifyableResource(ResourceDependencies rdl,
                               int interval)
Create a wrapper.

Parameters:
rdl - The resource list to wrap
interval - The max age of the test, in milliseconds.
Method Detail

isModified

public boolean isModified()
If it's not yet time to check for changes again return false (unchanged), else check the original dependencies. If that did not change reset the timer.

Specified by:
isModified in interface IIsModified
Returns:
See Also:
IIsModified.isModified()