How do you deserialize an object from bytes in osgi

后端 未结 3 649
说谎
说谎 2021-01-11 22:58

In my osgi application I have three bundles, travel.api, table.api and utils. travel.api depends on table.api

3条回答
  •  南方客
    南方客 (楼主)
    2021-01-11 23:35

    There is no other way how to do that AFAIK.

    You have to explicitly state all dependencies the deserialized object tree contains in that bundle where you are trying to do that.

    You could try to put all domain object into one bundle, let's say model and then let all other bundles depend on it.

提交回复
热议问题