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

    All Methods Instance Methods Concrete 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`

5.6.0 - Copyright © 2003-2020 The Apache Software Foundation.