Skip to content

Is it still necessary to bind ISerializer to org.eclipse.xtext.serializer.impl.Serializer? #3330

Answered by tfonda-fbk
tfonda-fbk asked this question in Q&A
Discussion options

You must be logged in to vote

I have actually called serializer.getClass().getName() after obtaining my serializer as explained above and without any manually-added binding in the runtime module, and the string I got is indeed org.eclipse.xtext.serializer.impl.Serializer. So I conclude that in "standard" Xtext use cases (where there is, e.g., a MyDSLRuntimeModule that extends AbstractMyDSLRuntimeModule that in turn extends DefaultRuntimeModule), no manual binding is needed. If a case exists, where the DefaultRuntimeModule is used/extended without the presence of the generated Abstract*RuntimeModule, though, then in this case the old, deprecated Serializer implementation is used, as DefaultRuntimeModule still binds the…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tfonda-fbk
Comment options

Answer selected by tfonda-fbk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants