Skip to content

Use Serializer from EclipseStore with TypeHandlers #232

Answered by hg-ms
tschuehly asked this question in Q&A
Discussion options

You must be logged in to vote

There is an option to initialize the serializer with a predefined TypeDictionary by providing a custom PersistenceTypeDictionaryLoader that provides the TypeDictionary as a String.

String typeDictionaryString = ...
final SerializerFoundation<?> foundation = SerializerFoundation.New();
foundation.setTypeDictionaryLoader(()->typeDictionaryString);

The typeDictionaryString can be exported from another Serializer instance:

final String typeDictionaryString = foundation.getTypeDictionaryAssembler()
    .assemble(foundation.getTypeDictionaryManager().provideTypeDictionary());

Of course, you can initialize that String also from an existing type-dictionary file.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@tschuehly
Comment options

@hg-ms
Comment options

Answer selected by tschuehly
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