Fix to make things serializable
Change-Id: Id6ec282d72065241f8942c2b169311de5710a6b7
Showing
4 changed files
with
26 additions
and
0 deletions
... | @@ -45,4 +45,9 @@ public class MessageSubject { | ... | @@ -45,4 +45,9 @@ public class MessageSubject { |
45 | MessageSubject that = (MessageSubject) obj; | 45 | MessageSubject that = (MessageSubject) obj; |
46 | return Objects.equals(this.value, that.value); | 46 | return Objects.equals(this.value, that.value); |
47 | } | 47 | } |
48 | + | ||
49 | + // for serializer | ||
50 | + protected MessageSubject() { | ||
51 | + this.value = ""; | ||
52 | + } | ||
48 | } | 53 | } | ... | ... |
... | @@ -35,4 +35,11 @@ public class InternalDeviceEvent { | ... | @@ -35,4 +35,11 @@ public class InternalDeviceEvent { |
35 | public Timestamped<DeviceDescription> deviceDescription() { | 35 | public Timestamped<DeviceDescription> deviceDescription() { |
36 | return deviceDescription; | 36 | return deviceDescription; |
37 | } | 37 | } |
38 | + | ||
39 | + // for serializer | ||
40 | + protected InternalDeviceEvent() { | ||
41 | + this.providerId = null; | ||
42 | + this.deviceId = null; | ||
43 | + this.deviceDescription = null; | ||
44 | + } | ||
38 | } | 45 | } | ... | ... |
... | @@ -37,4 +37,11 @@ public class InternalPortEvent { | ... | @@ -37,4 +37,11 @@ public class InternalPortEvent { |
37 | public Timestamped<List<PortDescription>> portDescriptions() { | 37 | public Timestamped<List<PortDescription>> portDescriptions() { |
38 | return portDescriptions; | 38 | return portDescriptions; |
39 | } | 39 | } |
40 | + | ||
41 | + // for serializer | ||
42 | + protected InternalPortEvent() { | ||
43 | + this.providerId = null; | ||
44 | + this.deviceId = null; | ||
45 | + this.portDescriptions = null; | ||
46 | + } | ||
40 | } | 47 | } | ... | ... |
... | @@ -35,4 +35,11 @@ public class InternalPortStatusEvent { | ... | @@ -35,4 +35,11 @@ public class InternalPortStatusEvent { |
35 | public Timestamped<PortDescription> portDescription() { | 35 | public Timestamped<PortDescription> portDescription() { |
36 | return portDescription; | 36 | return portDescription; |
37 | } | 37 | } |
38 | + | ||
39 | + // for serializer | ||
40 | + protected InternalPortStatusEvent() { | ||
41 | + this.providerId = null; | ||
42 | + this.deviceId = null; | ||
43 | + this.portDescription = null; | ||
44 | + } | ||
38 | } | 45 | } | ... | ... |
-
Please register or login to post a comment