TelluIoT / ThingML

The ThingML modelling language
https://github.com/TelluIoT/ThingML
Apache License 2.0
102 stars 33 forks source link

JavaByteArraySerializerPlugin cannot be called for multiple transport plugins #127

Closed sdalgard closed 8 years ago

sdalgard commented 8 years ago

The private methods clearMessages(), containsMessage() and addMessage() are used for generating message intances only once.

When fetching the serializer object from the context it will return the same object instance each time.

The result is that the same message type used by many transport plugins will only be instantiated for the first plugin.