| | |
| | | import org.springframework.scheduling.annotation.EnableScheduling; |
| | | import com.battery.device.api.NoopDeviceAdapterFactory; |
| | | import com.battery.device.bts.BtsDeviceAdapterFactory; |
| | | import com.battery.device.bts.NewareBtsAdapterFactory; |
| | | import com.battery.device.api.registry.DeviceAdapterRegistry; |
| | | import com.battery.device.neware.NewareMysqlAdapterFactory; |
| | | import com.battery.business.mapper.TDeviceIngestRecordMapper; |
| | |
| | | public DeviceAdapterRegistry deviceAdapterRegistry(TDeviceIngestRecordMapper ingestRecords) |
| | | { |
| | | return new DeviceAdapterRegistry(List.of(new NoopDeviceAdapterFactory(), new BtsDeviceAdapterFactory(), |
| | | new NewareMysqlAdapterFactory(), new PushIngestAdapterFactory(ingestRecords))); |
| | | new NewareBtsAdapterFactory(), new NewareMysqlAdapterFactory(), |
| | | new PushIngestAdapterFactory(ingestRecords))); |
| | | } |
| | | } |