Package ubic.gemma.web.assets
Class InternalStaticAssetServer
java.lang.Object
ubic.gemma.web.assets.InternalStaticAssetServer
- All Implemented Interfaces:
org.springframework.context.Lifecycle
,org.springframework.context.Phased
,org.springframework.context.SmartLifecycle
,StaticAssetServer
public class InternalStaticAssetServer
extends Object
implements StaticAssetServer, org.springframework.context.SmartLifecycle
An internal static asset server that uses npm to serve static assets.
- Author:
- poirigui
-
Constructor Summary
ConstructorsConstructorDescriptionInternalStaticAssetServer
(Path npmExe, Path prefix, String baseUrl, boolean autoStartup, Path logFile) -
Method Summary
-
Constructor Details
-
InternalStaticAssetServer
-
-
Method Details
-
getBaseUrl
Description copied from interface:StaticAssetServer
Obtain the base URL for resolving static assets from the server.- Specified by:
getBaseUrl
in interfaceStaticAssetServer
-
start
public void start()- Specified by:
start
in interfaceorg.springframework.context.Lifecycle
-
stop
public void stop()- Specified by:
stop
in interfaceorg.springframework.context.Lifecycle
-
isRunning
public boolean isRunning()- Specified by:
isRunning
in interfaceorg.springframework.context.Lifecycle
-
isAlive
public boolean isAlive()Description copied from interface:StaticAssetServer
Indicate if the static asset server is running.- Specified by:
isAlive
in interfaceStaticAssetServer
-
getLaunchInstruction
Description copied from interface:StaticAssetServer
Obtain launch instructions if the server is not running.- Specified by:
getLaunchInstruction
in interfaceStaticAssetServer
-
isAutoStartup
public boolean isAutoStartup()- Specified by:
isAutoStartup
in interfaceorg.springframework.context.SmartLifecycle
-
stop
- Specified by:
stop
in interfaceorg.springframework.context.SmartLifecycle
-
getPhase
public int getPhase()- Specified by:
getPhase
in interfaceorg.springframework.context.Phased
-