Class OptionalLiveReloadServer

java.lang.Object
org.springframework.boot.devtools.autoconfigure.OptionalLiveReloadServer
All Implemented Interfaces:
InitializingBean

@Deprecated(since="4.1.0", forRemoval=true) public class OptionalLiveReloadServer extends Object implements InitializingBean
Deprecated, for removal: This API element is subject to removal in a future version.
since 4.1.0 for removal in 4.3.0 with no replacement.
Manages an optional LiveReloadServer. The LiveReloadServer may gracefully fail to start (e.g. because of a port conflict) or may be omitted entirely.
Since:
1.3.0
Author:
Phillip Webb
  • Constructor Details

    • OptionalLiveReloadServer

      public OptionalLiveReloadServer(@Nullable LiveReloadServer server)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Create a new OptionalLiveReloadServer instance.
      Parameters:
      server - the server to manage or null
  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      afterPropertiesSet in interface InitializingBean
      Throws:
      Exception
    • triggerReload

      public void triggerReload()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Trigger LiveReload if the server is up and running.