refactor(java): Streamline ClassResolver responsibilities
To reduce the complexity of the ClassResolver class, we mainly do the following two things:
-
Move ClassId related responsibilities into ClassIdAllocator class.
-
Move
registeredId2ClassInfointoExtRegistrystatic inner class since they are content related.
Hi @LiangliangSui , thanks for this work. We're standardlizing Fury xlang serialization protocol in #1413 , which may change class resolver too, especially the class id part. Can we hold this until the xlang serialization protocol are merged, so we don't have to refactor ClassResolver again.
The type id is lift to the first-class concept in #1413, we do need to strealine it from class resolver.
Ok, we keep this PR until the xlang serialization protocol is merged.