package com.yeejoin.amos.fas.config;

import com.yeejoin.amos.fas.business.service.intfc.IContingencyPlanService;
import com.yeejoin.amos.fas.business.service.intfc.IEquipmentHandlerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * @author keyong
 * @title: ApplicationRunnerImpl
 * <pre>
 * @description: TODO
 * </pre>
 * @date 2020/12/12 20:18
 */
@Component
public class ApplicationRunnerImpl implements ApplicationRunner {

    @Autowired
    private IEquipmentHandlerService equipmentHandlerService;
    @Autowired
    private IContingencyPlanService contingencyPlanService;

    @Override
    public void run(ApplicationArguments args) throws Exception {
        equipmentHandlerService.subscribeTopic();
        contingencyPlanService.subscribeTopic();
    }
}
