Class RecurringNotificationRunner
java.lang.Object
com.bluebell.greenhouse.radicle.runners.AbstractRunner
com.bluebell.greenhouse.radicle.runners.RecurringNotificationRunner
- All Implemented Interfaces:
org.springframework.boot.CommandLineRunner, org.springframework.core.Ordered
@Component
@Profile("dev")
@ConditionalOnProperty(name="bluebell.init.regenerate-system",havingValue="true") @ConditionalOnProperty(name="bluebell.cmdlr.notification.e2e",havingValue="true")
public class RecurringNotificationRunner
extends AbstractRunner
implements org.springframework.boot.CommandLineRunner, org.springframework.core.Ordered
Dev-only runner that exercises the recurring notification flow end to end for a single user.
- Version:
- 2.0.3
- 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
-
RecurringNotificationRunner
public RecurringNotificationRunner()
-
-
Method Details
-
run
Creates or updates a recurring notification for the configured user and then sends it.- 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
-