package com.gic.haoban.manage.service.util;

import com.gic.commons.switcher.SwitcherApplication;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Component;

import java.util.concurrent.atomic.AtomicBoolean;

@Component
public class SwitcherInitialization implements InitializingBean {
    static AtomicBoolean INIT = new AtomicBoolean(false);
    @Override
    public void afterPropertiesSet() throws Exception {
        SwitcherApplication.init(CustomSwitcher.class);
    }
}