Class OptionalLiveReloadServer
- java.lang.Object
- org.springframework.boot.devtools.autoconfigure.OptionalLiveReloadServer
 
- All Implemented Interfaces:
- org.springframework.beans.factory.InitializingBean
 - public class OptionalLiveReloadServer extends Object implements org.springframework.beans.factory.InitializingBean Manages an optional- LiveReloadServer. The- LiveReloadServermay gracefully fail to start (e.g. because of a port conflict) or may be omitted entirely.- Since:
- 1.3.0
 
- Constructor Summary- Constructors - Constructor - Description - OptionalLiveReloadServer(LiveReloadServer server)Create a new- OptionalLiveReloadServerinstance.
 - Method Summary- All Methods Instance Methods Concrete Methods - Modifier and Type - Method - Description - void- afterPropertiesSet()- void- triggerReload()Trigger LiveReload if the server is up and running.
 
- Constructor Detail- OptionalLiveReloadServer- public OptionalLiveReloadServer(LiveReloadServer server) Create a new- OptionalLiveReloadServerinstance.- Parameters:
- server- the server to manage or- null
 
 
 - Method Detail- afterPropertiesSet- public void afterPropertiesSet() throws Exception - Specified by:
- afterPropertiesSetin interface- org.springframework.beans.factory.InitializingBean
- Throws:
- Exception
 
 - triggerReload- public void triggerReload() Trigger LiveReload if the server is up and running.