package com.ruoyi.config; import java.util.List; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.scheduling.annotation.EnableScheduling; import com.ruoyi.device.bts.BtsDeviceAdapterFactory; import com.ruoyi.device.registry.DeviceAdapterRegistry; /** 装配单进程设备适配器运行时。 */ @Configuration @EnableScheduling public class DeviceAdapterRuntimeConfig { @Bean(destroyMethod = "close") public DeviceAdapterRegistry deviceAdapterRegistry() { return new DeviceAdapterRegistry(List.of(new BtsDeviceAdapterFactory())); } }