Class SystemRunner
java.lang.Object
com.bluebell.greenhouse.radicle.runners.AbstractRunner
com.bluebell.greenhouse.radicle.runners.SystemRunner
- All Implemented Interfaces:
org.springframework.boot.CommandLineRunner, org.springframework.core.Ordered
@Component
@Profile("dev")
@ConditionalOnProperty(name="bluebell.init.regenerate-system",
havingValue="true")
public class SystemRunner
extends AbstractRunner
implements org.springframework.boot.CommandLineRunner, org.springframework.core.Ordered
Clears the database before running the test data suite.
- Version:
- 1.0.10
- Author:
- Stephen Prizio
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AbstractRunner
logEnd, logStart
-
Constructor Details
-
SystemRunner
public SystemRunner()
-
-
Method Details
-
run
Clears the db of data.- Specified by:
runin interfaceorg.springframework.boot.CommandLineRunner- Parameters:
args- incoming main method arguments
-
getOrder
public int getOrder()Returns the runner order.- Specified by:
getOrderin interfaceorg.springframework.core.Ordered- Returns:
- priority
-