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:StaticAssetServerObtain the base URL for resolving static assets from the server.- Specified by:
getBaseUrlin interfaceStaticAssetServer
-
start
public void start()- Specified by:
startin interfaceorg.springframework.context.Lifecycle
-
stop
public void stop()- Specified by:
stopin interfaceorg.springframework.context.Lifecycle
-
isRunning
public boolean isRunning()- Specified by:
isRunningin interfaceorg.springframework.context.Lifecycle
-
isAlive
public boolean isAlive()Description copied from interface:StaticAssetServerIndicate if the static asset server is running.- Specified by:
isAlivein interfaceStaticAssetServer
-
getLaunchInstruction
Description copied from interface:StaticAssetServerObtain launch instructions if the server is not running.- Specified by:
getLaunchInstructionin interfaceStaticAssetServer
-
isAutoStartup
public boolean isAutoStartup()- Specified by:
isAutoStartupin interfaceorg.springframework.context.SmartLifecycle
-
stop
- Specified by:
stopin interfaceorg.springframework.context.SmartLifecycle
-
getPhase
public int getPhase()- Specified by:
getPhasein interfaceorg.springframework.context.Phased
-