File was renamed from zy-acs-manager/src/main/java/com/zy/acs/manager/core/service/astart/config/MapDataConfig.java |
| | |
| | | package com.zy.acs.manager.core.service.astart.config; |
| | | package com.zy.acs.manager.core.config; |
| | | |
| | | import com.zy.acs.manager.core.service.astart.MapDataDispatcher; |
| | | import com.zy.acs.manager.manager.service.CodeService; |
| | |
| | | import org.springframework.context.annotation.Bean; |
| | | import org.springframework.context.annotation.Configuration; |
| | | |
| | | /** |
| | | * Created by vincent on 2023/7/14 |
| | | */ |
| | | import java.util.concurrent.atomic.AtomicBoolean; |
| | | |
| | | @Configuration |
| | | public class MapDataConfig { |
| | | public class BootConfig { |
| | | |
| | | public static final AtomicBoolean FULLY_LOADED = new AtomicBoolean(false); |
| | | |
| | | @Autowired |
| | | private CodeService codeService; |
| | |
| | | dispatcher.getCdaMatrix(null); |
| | | dispatcher.getDynamicMatrix(null); |
| | | } |
| | | FULLY_LOADED.set(true); |
| | | return dispatcher; |
| | | } |
| | | |
| | | public static boolean isFullyLoaded() { |
| | | return FULLY_LOADED.get(); |
| | | } |
| | | |
| | | |
| | | } |