72
72
import org .opensmartgridplatform .shared .infra .jms .MessageMetadata ;
73
73
import org .slf4j .Logger ;
74
74
import org .slf4j .LoggerFactory ;
75
- import org .springframework .beans .factory .annotation .Autowired ;
76
75
import org .springframework .stereotype .Service ;
77
76
78
77
@ Service (value = "dlmsConfigurationService" )
@@ -82,62 +81,93 @@ public class ConfigurationService {
82
81
83
82
private static final Logger LOGGER = LoggerFactory .getLogger (ConfigurationService .class );
84
83
85
- @ Autowired private DomainHelperService domainHelperService ;
86
-
87
- @ Autowired private FirmwareService firmwareService ;
88
-
89
- @ Autowired private SetSpecialDaysCommandExecutor setSpecialDaysCommandExecutor ;
90
-
91
- @ Autowired private SetAlarmNotificationsCommandExecutor setAlarmNotificationsCommandExecutor ;
92
-
93
- @ Autowired private SetConfigurationObjectCommandExecutor setConfigurationObjectCommandExecutor ;
94
-
95
- @ Autowired private SetPushSetupAlarmCommandExecutor setPushSetupAlarmCommandExecutor ;
96
-
97
- @ Autowired private SetPushSetupLastGaspCommandExecutor setPushSetupLastGaspCommandExecutor ;
98
-
99
- @ Autowired private SetPushSetupSmsCommandExecutor setPushSetupSmsCommandExecutor ;
100
-
101
- @ Autowired private SetPushSetupUdpCommandExecutor setPushSetupUdpCommandExecutor ;
102
-
103
- @ Autowired private SetThdConfigurationCommandExecutor setThdConfigurationCommandExecutor ;
104
-
105
- @ Autowired private SetActivityCalendarCommandExecutor setActivityCalendarCommandExecutor ;
106
-
107
- @ Autowired private SetKeyOnGMeterCommandExecutor setKeyOnGMeterCommandExecutor ;
108
-
109
- @ Autowired private GetMBusDeviceOnChannelCommandExecutor getMBusDeviceOnChannelCommandExecutor ;
110
-
111
- @ Autowired private SetAdministrativeStatusCommandExecutor setAdministrativeStatusCommandExecutor ;
112
-
113
- @ Autowired private GetAdministrativeStatusCommandExecutor getAdministrativeStatusCommandExecutor ;
114
-
115
- @ Autowired private GetFirmwareVersionsCommandExecutor getFirmwareVersionCommandExecutor ;
116
-
117
- @ Autowired private GetFirmwareVersionsGasCommandExecutor getFirmwareVersionGasCommandExecutor ;
118
-
119
- @ Autowired private ReplaceKeyCommandExecutor replaceKeyCommandExecutor ;
120
-
121
- @ Autowired private SetClockConfigurationCommandExecutor setClockConfigurationCommandExecutor ;
122
-
123
- @ Autowired private GetConfigurationObjectCommandExecutor getConfigurationObjectCommandExecutor ;
124
-
125
- @ Autowired private GenerateAndReplaceKeyCommandExecutor generateAndReplaceKeyCommandExecutor ;
126
-
127
- @ Autowired
128
- private ConfigureDefinableLoadProfileCommandExecutor configureDefinableLoadProfileCommandExecutor ;
129
-
130
- @ Autowired
131
- private GetMbusEncryptionKeyStatusCommandExecutor getMbusEncryptionKeyStatusCommandExecutor ;
132
-
133
- @ Autowired
134
- private GetMbusEncryptionKeyStatusByChannelCommandExecutor
84
+ private final DomainHelperService domainHelperService ;
85
+ private final FirmwareService firmwareService ;
86
+ private final SetSpecialDaysCommandExecutor setSpecialDaysCommandExecutor ;
87
+ private final SetAlarmNotificationsCommandExecutor setAlarmNotificationsCommandExecutor ;
88
+ private final SetConfigurationObjectCommandExecutor setConfigurationObjectCommandExecutor ;
89
+ private final SetPushSetupAlarmCommandExecutor setPushSetupAlarmCommandExecutor ;
90
+ private final SetPushSetupLastGaspCommandExecutor setPushSetupLastGaspCommandExecutor ;
91
+ private final SetPushSetupSmsCommandExecutor setPushSetupSmsCommandExecutor ;
92
+ private final SetPushSetupUdpCommandExecutor setPushSetupUdpCommandExecutor ;
93
+ private final SetThdConfigurationCommandExecutor setThdConfigurationCommandExecutor ;
94
+ private final SetActivityCalendarCommandExecutor setActivityCalendarCommandExecutor ;
95
+ private final SetKeyOnGMeterCommandExecutor setKeyOnGMeterCommandExecutor ;
96
+ private final GetMBusDeviceOnChannelCommandExecutor getMBusDeviceOnChannelCommandExecutor ;
97
+ private final SetAdministrativeStatusCommandExecutor setAdministrativeStatusCommandExecutor ;
98
+ private final GetAdministrativeStatusCommandExecutor getAdministrativeStatusCommandExecutor ;
99
+ private final GetFirmwareVersionsCommandExecutor getFirmwareVersionCommandExecutor ;
100
+ private final GetFirmwareVersionsGasCommandExecutor getFirmwareVersionGasCommandExecutor ;
101
+ private final ReplaceKeyCommandExecutor replaceKeyCommandExecutor ;
102
+ private final SetClockConfigurationCommandExecutor setClockConfigurationCommandExecutor ;
103
+ private final GetConfigurationObjectCommandExecutor getConfigurationObjectCommandExecutor ;
104
+ private final GenerateAndReplaceKeyCommandExecutor generateAndReplaceKeyCommandExecutor ;
105
+ private final ConfigureDefinableLoadProfileCommandExecutor
106
+ configureDefinableLoadProfileCommandExecutor ;
107
+ private final GetMbusEncryptionKeyStatusCommandExecutor getMbusEncryptionKeyStatusCommandExecutor ;
108
+ private final GetMbusEncryptionKeyStatusByChannelCommandExecutor
135
109
getMbusEncryptionKeyStatusByChannelCommandExecutor ;
136
-
137
- @ Autowired
138
- private SetRandomisationSettingsCommandExecutor setRandomisationSettingsCommandExecutor ;
139
-
140
- @ Autowired private GetKeysService getKeysService ;
110
+ private final SetRandomisationSettingsCommandExecutor setRandomisationSettingsCommandExecutor ;
111
+ private final GetKeysService getKeysService ;
112
+
113
+ public ConfigurationService (
114
+ final DomainHelperService domainHelperService ,
115
+ final FirmwareService firmwareService ,
116
+ final SetSpecialDaysCommandExecutor setSpecialDaysCommandExecutor ,
117
+ final SetAlarmNotificationsCommandExecutor setAlarmNotificationsCommandExecutor ,
118
+ final SetConfigurationObjectCommandExecutor setConfigurationObjectCommandExecutor ,
119
+ final SetPushSetupAlarmCommandExecutor setPushSetupAlarmCommandExecutor ,
120
+ final SetPushSetupLastGaspCommandExecutor setPushSetupLastGaspCommandExecutor ,
121
+ final SetPushSetupSmsCommandExecutor setPushSetupSmsCommandExecutor ,
122
+ final SetPushSetupUdpCommandExecutor setPushSetupUdpCommandExecutor ,
123
+ final SetThdConfigurationCommandExecutor setThdConfigurationCommandExecutor ,
124
+ final SetActivityCalendarCommandExecutor setActivityCalendarCommandExecutor ,
125
+ final SetKeyOnGMeterCommandExecutor setKeyOnGMeterCommandExecutor ,
126
+ final GetMBusDeviceOnChannelCommandExecutor getMBusDeviceOnChannelCommandExecutor ,
127
+ final SetAdministrativeStatusCommandExecutor setAdministrativeStatusCommandExecutor ,
128
+ final GetAdministrativeStatusCommandExecutor getAdministrativeStatusCommandExecutor ,
129
+ final GetFirmwareVersionsCommandExecutor getFirmwareVersionCommandExecutor ,
130
+ final GetFirmwareVersionsGasCommandExecutor getFirmwareVersionGasCommandExecutor ,
131
+ final ReplaceKeyCommandExecutor replaceKeyCommandExecutor ,
132
+ final SetClockConfigurationCommandExecutor setClockConfigurationCommandExecutor ,
133
+ final GetConfigurationObjectCommandExecutor getConfigurationObjectCommandExecutor ,
134
+ final GenerateAndReplaceKeyCommandExecutor generateAndReplaceKeyCommandExecutor ,
135
+ final ConfigureDefinableLoadProfileCommandExecutor
136
+ configureDefinableLoadProfileCommandExecutor ,
137
+ final GetMbusEncryptionKeyStatusCommandExecutor getMbusEncryptionKeyStatusCommandExecutor ,
138
+ final GetMbusEncryptionKeyStatusByChannelCommandExecutor
139
+ getMbusEncryptionKeyStatusByChannelCommandExecutor ,
140
+ final SetRandomisationSettingsCommandExecutor setRandomisationSettingsCommandExecutor ,
141
+ final GetKeysService getKeysService ) {
142
+ this .domainHelperService = domainHelperService ;
143
+ this .firmwareService = firmwareService ;
144
+ this .setSpecialDaysCommandExecutor = setSpecialDaysCommandExecutor ;
145
+ this .setAlarmNotificationsCommandExecutor = setAlarmNotificationsCommandExecutor ;
146
+ this .setConfigurationObjectCommandExecutor = setConfigurationObjectCommandExecutor ;
147
+ this .setPushSetupAlarmCommandExecutor = setPushSetupAlarmCommandExecutor ;
148
+ this .setPushSetupLastGaspCommandExecutor = setPushSetupLastGaspCommandExecutor ;
149
+ this .setPushSetupSmsCommandExecutor = setPushSetupSmsCommandExecutor ;
150
+ this .setPushSetupUdpCommandExecutor = setPushSetupUdpCommandExecutor ;
151
+ this .setThdConfigurationCommandExecutor = setThdConfigurationCommandExecutor ;
152
+ this .setActivityCalendarCommandExecutor = setActivityCalendarCommandExecutor ;
153
+ this .setKeyOnGMeterCommandExecutor = setKeyOnGMeterCommandExecutor ;
154
+ this .getMBusDeviceOnChannelCommandExecutor = getMBusDeviceOnChannelCommandExecutor ;
155
+ this .setAdministrativeStatusCommandExecutor = setAdministrativeStatusCommandExecutor ;
156
+ this .getAdministrativeStatusCommandExecutor = getAdministrativeStatusCommandExecutor ;
157
+ this .getFirmwareVersionCommandExecutor = getFirmwareVersionCommandExecutor ;
158
+ this .getFirmwareVersionGasCommandExecutor = getFirmwareVersionGasCommandExecutor ;
159
+ this .replaceKeyCommandExecutor = replaceKeyCommandExecutor ;
160
+ this .setClockConfigurationCommandExecutor = setClockConfigurationCommandExecutor ;
161
+ this .getConfigurationObjectCommandExecutor = getConfigurationObjectCommandExecutor ;
162
+ this .generateAndReplaceKeyCommandExecutor = generateAndReplaceKeyCommandExecutor ;
163
+ this .configureDefinableLoadProfileCommandExecutor =
164
+ configureDefinableLoadProfileCommandExecutor ;
165
+ this .getMbusEncryptionKeyStatusCommandExecutor = getMbusEncryptionKeyStatusCommandExecutor ;
166
+ this .getMbusEncryptionKeyStatusByChannelCommandExecutor =
167
+ getMbusEncryptionKeyStatusByChannelCommandExecutor ;
168
+ this .setRandomisationSettingsCommandExecutor = setRandomisationSettingsCommandExecutor ;
169
+ this .getKeysService = getKeysService ;
170
+ }
141
171
142
172
public void setSpecialDays (
143
173
final DlmsConnectionManager conn ,
0 commit comments