All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.icthh.xm.commons.scheduler.service.SchedulerService Maven / Gradle / Ivy

There is a newer version: 4.0.17
Show newest version
package com.icthh.xm.commons.scheduler.service;

import com.icthh.xm.commons.lep.LogicExtensionPoint;
import com.icthh.xm.commons.lep.spring.LepService;
import com.icthh.xm.commons.scheduler.domain.ScheduledEvent;
import com.icthh.xm.commons.scheduler.resolver.SchedulerEventTypeKeyResolver;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Slf4j
@Service
@Transactional
@LepService(group = "scheduler")
public class SchedulerService {

    @LogicExtensionPoint(value = "SchedulerEvent", resolver = SchedulerEventTypeKeyResolver.class)
    public void onEvent(ScheduledEvent scheduledEvent) {
        log.error("No handlers for event {} found", scheduledEvent);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy