org.apache.tapestry5.internal.webresources

## Class ContentChangeTracker

- java.lang.Object
- - org.apache.tapestry5.internal.webresources.ContentChangeTracker

- All Implemented Interfaces:
    ResourceDependencies

      public class ContentChangeTracker
      extends Object
      implements ResourceDependencies

  Manages a collection of Resources and can check to see if any resource's actual content has changed.
  Since:
    5.4

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ContentChangeTracker()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addDependency(Resource dependency)` Marks the dependency as an additional resource.
    `boolean` | `dirty()` Checks all resources tracked by this instance and returns true if any resource's content has changed.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ContentChangeTracker

          public ContentChangeTracker()

  - ### Method Detail

    - #### addDependency

          public void addDependency(Resource dependency)

      Description copied from interface: `ResourceDependencies`
      Marks the dependency as an additional resource. A change to the dependency is considered the same as a change to the resource being transformed.
      Specified by:
        `addDependency` in interface `ResourceDependencies`

    - #### dirty

          public boolean dirty()
                        throws IOException

      Checks all resources tracked by this instance and returns true if any resource's content has changed.
      Returns:
        true if a change has occurred
      Throws:
        `IOException`

${project.version} - Copyright © 2003-2015 The Apache Software Foundation.