Package com.onec.ui

Class UpdateProperties

java.lang.Object
com.onec.ui.UpdateProperties

@ConfigurationProperties(prefix="onec.ui.update-check") public class UpdateProperties extends Object
Configures the "update available" check: the running app periodically asks onec-cloud what the latest published framework version is and surfaces a notice when it is newer than its own.

On by default and fail-silent — an unreachable cloud, an offline host, or an app whose own version can't be determined simply yields no notice rather than an error or a wrong banner.

  • Constructor Details

    • UpdateProperties

      public UpdateProperties()
  • Method Details

    • isEnabled

      public boolean isEnabled()
    • setEnabled

      public void setEnabled(boolean enabled)
    • getUrl

      public String getUrl()
    • setUrl

      public void setUrl(String url)
    • getInterval

      public Duration getInterval()
    • setInterval

      public void setInterval(Duration interval)
    • getInitialDelay

      public Duration getInitialDelay()
    • setInitialDelay

      public void setInitialDelay(Duration initialDelay)