You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We realized the current architecture is too complex, thus, with the aim of simplifying it, we try to make some changes. In particular:
We want to use a structure similar to the one used in our emf.osgi for the ModelInfo: when a new EPackage comes around, we want to create a CodecModelInfo object which loops over the various EClass, EFeature etc, and construct the corresponding IdentityInfo, TypeInfo, etc, which will then be used by the CodecModule and the ObjectMapper for serialization and deserialization;
This should reduce the current complexity of having the *Info and *Property objects and creating the ObjectPropertyMap for every object we want to serialize/deserialize;
The idea then would be that, when we want to serialize an EObject belonging to a given EPackage we should be able to retrieve a corresponding instance of CodecModelInfo for that EObject, and overwrite, if needed, the default setup, like the id or type key names to use during serialization, etc.
We realized the current architecture is too complex, thus, with the aim of simplifying it, we try to make some changes. In particular:
ModelInfo
: when a newEPackage
comes around, we want to create aCodecModelInfo
object which loops over the variousEClass
,EFeature
etc, and construct the correspondingIdentityInfo
,TypeInfo
, etc, which will then be used by theCodecModule
and theObjectMapper
for serialization and deserialization;ObjectPropertyMap
for every object we want to serialize/deserialize;EObject
belonging to a givenEPackage
we should be able to retrieve a corresponding instance ofCodecModelInfo
for thatEObject
, and overwrite, if needed, the default setup, like the id or type key names to use during serialization, etc.The steps to achieve that would be:
The text was updated successfully, but these errors were encountered: