org.apache.tapestry5.internal.services

## Class ReloadHelperImpl

- java.lang.Object
- - org.apache.tapestry5.internal.services.ReloadHelperImpl

- All Implemented Interfaces:
    ReloadHelper

      public class ReloadHelperImpl
      extends Object
      implements ReloadHelper

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ReloadHelperImpl(AlertManager alertManager, boolean productionMode)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addReloadCallback(Runnable callback)` Adds a callback to be invoked from `ReloadHelper.forceReload()`.
    `void` | `forceReload()` Force a reload (if in development mode).

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

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

- - ### Constructor Detail

    - #### ReloadHelperImpl

          public ReloadHelperImpl(AlertManager alertManager,
                          @Symbol(value="tapestry.production-mode")
                          boolean productionMode)

  - ### Method Detail

    - #### forceReload

          public void forceReload()

      Description copied from interface: `ReloadHelper`
      Force a reload (if in development mode). Writes an `AlertManager` alert message.
      Specified by:
        `forceReload` in interface `ReloadHelper`

    - #### addReloadCallback

          public void addReloadCallback(Runnable callback)

      Description copied from interface: `ReloadHelper`
      Adds a callback to be invoked from `ReloadHelper.forceReload()`.
      Specified by:
        `addReloadCallback` in interface `ReloadHelper`

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