Class HSQLDBServer
java.lang.Object
com.broadleafcommerce.autoconfigure.HSQLDBServer
- All Implemented Interfaces:
org.springframework.context.Lifecycle,org.springframework.context.Phased,org.springframework.context.SmartLifecycle
Adapted from https://www.javacodegeeks.com/2012/11/embedding-hsqldb-server-instance-in-spring.html by Allen Chee
- Author:
- Jeff Fischer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.hsqldb.persist.HsqlPropertiesprotected org.hsqldb.Serverprotected ThreadFields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
ConstructorsConstructorDescriptionHSQLDBServer(HSQLDBProperties autoProps, org.springframework.core.env.Environment environment) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidclearState(HSQLDBProperties autoProps, org.springframework.core.env.Environment environment) intgetPhase()booleanbooleanvoidstart()voidstop()void
-
Field Details
-
props
protected org.hsqldb.persist.HsqlProperties props -
server
protected org.hsqldb.Server server -
serverThread
-
-
Constructor Details
-
HSQLDBServer
public HSQLDBServer(HSQLDBProperties autoProps, org.springframework.core.env.Environment environment)
-
-
Method Details
-
isRunning
public boolean isRunning()- Specified by:
isRunningin interfaceorg.springframework.context.Lifecycle
-
start
public void start()- Specified by:
startin interfaceorg.springframework.context.Lifecycle
-
stop
public void stop()- Specified by:
stopin interfaceorg.springframework.context.Lifecycle
-
getPhase
public int getPhase()- Specified by:
getPhasein interfaceorg.springframework.context.Phased- Specified by:
getPhasein interfaceorg.springframework.context.SmartLifecycle
-
isAutoStartup
public boolean isAutoStartup()- Specified by:
isAutoStartupin interfaceorg.springframework.context.SmartLifecycle
-
stop
- Specified by:
stopin interfaceorg.springframework.context.SmartLifecycle
-
clearState
protected void clearState(HSQLDBProperties autoProps, org.springframework.core.env.Environment environment)
-