public class OptionalLiveReloadServer extends Object
LiveReloadServer
. The LiveReloadServer
may
gracefully fail to start (e.g. because of a port conflict) or may be omitted entirely.Constructor and Description |
---|
OptionalLiveReloadServer(LiveReloadServer server)
Create a new
OptionalLiveReloadServer instance. |
Modifier and Type | Method and Description |
---|---|
void |
startServer()
PostConstruct method to start the server if possible. |
void |
triggerReload()
Trigger LiveReload if the server is up an running.
|
public OptionalLiveReloadServer(LiveReloadServer server)
OptionalLiveReloadServer
instance.server
- the server to manage or null
@PostConstruct public void startServer() throws Exception
PostConstruct
method to start the server if possible.Exception
- in case of errorspublic void triggerReload()
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.