But how does the global gson Factory registered works with the annotated class?
Sébastien Tiscar Astasio
1

The gson factory must be registered in every instance of gson. So the factory must not be static, but the gson instance might be.