This works and is exactly what we need, but "Loaded [{}] service(s) from [{}]." message is constantly logged, so hard-coded configuration is constantly reloaded
/**
* Load services that are provided by the DAO.
*/
@Scheduled(initialDelayString = "${cas.serviceRegistry.schedule.startDelay:20000}",
fixedDelayString = "${cas.serviceRegistry.schedule.repeatInterval:60000}")
@Override
@PostConstruct
public Collection<RegisteredService> load() {
I could set 31,536,000,000 (a year) for both cas.serviceRegistry.schedule.startDelay and cas.serviceRegistry.schedule.repeatInterval but it's still needlessly monitored by a Schedule.
A workaround is to copy the class in the overlay and comment out the @Scheduled annotation
A cleaner solution would be something like this, but I'm not sure how to implement this on an Abstract Class
https://stackoverflow.com/questions/34943466/how-to-disable-scheduled-method-via-properties-file