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
  • Constructor Details

    • SystemRunner

      public SystemRunner()
  • Method Details

    • run

      public void run(String... args)
      Clears the db of data.
      Specified by:
      run in interface org.springframework.boot.CommandLineRunner
      Parameters:
      args - incoming main method arguments
    • getOrder

      public int getOrder()
      Returns the runner order.
      Specified by:
      getOrder in interface org.springframework.core.Ordered
      Returns:
      priority