Ticket #25 (closed task: fixed)

Opened 4 years ago

Last modified 4 years ago

make resources no longer mandatory to implement ContextRessource

Reported by: JensLautenbacher Owned by: martin.leidig@…
Priority: major Milestone: 0.13.0
Component: Core (general) Version:
Keywords: Cc:

Description (last modified by JensLautenbacher) (diff)

We should remove the need to implement a special interface for having objects that represent the model of the application. Using the Object-to-XML serializer we already have, we can simply use any object we want in the role of a ContextRessource?.

We should do it like this: for "real" ContextRessources?, call the insertStatus() method of them as we do now. For other objects, we serialize the object itself and implement this in StateUtil?.renderContextResources()

Change History

Changed 4 years ago by JensLautenbacher

  • milestone set to 0.13.0

Changed 4 years ago by JensLautenbacher

  • status changed from new to closed
  • resolution set to fixed
  • description modified (diff)

Done. Implemented @InitResource? and @InsertStatus? annotations to designate methods from beans, if no @InsertStatus? is present, the whole bean will be serialized.

Note: See TracTickets for help on using tickets.