Class OptionalLiveReloadServer
java.lang.Object
org.springframework.boot.devtools.autoconfigure.OptionalLiveReloadServer
- All Implemented Interfaces:
InitializingBean
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
Trigger LiveReload if the server is up and running.
-
Constructor Details
-
OptionalLiveReloadServer
Create a newOptionalLiveReloadServer
instance.- Parameters:
server
- the server to manage ornull
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceInitializingBean
- Throws:
Exception
-
triggerReload
public void triggerReload()Trigger LiveReload if the server is up and running.
-