12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- package com.gzlh.config;
- import com.gzlh.device.capture.factory.CaptureFactory;
- import com.gzlh.device.rfid.factory.ElectronFactory;
- import com.gzlh.device.led.factory.LedFactory;
- import com.gzlh.device.weighbridge.factory.WeighbridgeFactory;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.stereotype.Component;
- @Component
- public class SystemObject {
- public static FilePropertiesConfig filePropertiesConfig;
- public static WeighbridgeFactory weighbridgeFactory;
- public static LedFactory ledFactory;
- public static CaptureFactory captureFactory;
- public static ElectronFactory electronFactory;
- @Autowired
- void setElectronFactory(ElectronFactory electronFactory) {
- SystemObject.electronFactory = electronFactory;
- }
- @Autowired
- void setFilePropertiesConfig(FilePropertiesConfig filePropertiesConfig) {
- SystemObject.filePropertiesConfig = filePropertiesConfig;
- }
- @Autowired
- void setWeighbridgeFactory(WeighbridgeFactory weighbridgeFactory) {
- SystemObject.weighbridgeFactory = weighbridgeFactory;
- }
- @Autowired
- void setLedFactory(LedFactory ledFactory) {
- SystemObject.ledFactory = ledFactory;
- }
- @Autowired
- void setCaptureFactory(CaptureFactory captureFactory) {
- SystemObject.captureFactory = captureFactory;
- }
- }
|