Ticket #65 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 years ago

Different strategy for XMLSerializer

Reported by: mikey Owned by: schst
Priority: major Milestone:
Component: XMLSerializer Version: SVN-trunk
Keywords: Cc:

Description

Currently the XMLSerializer will export the return values of all public methods, that do not require any parameters. Unfortunately this requires to mark all methods that should not be used for the serialization with @XMLIgnore. While this approach may have its benefits in some cases, in other cases it would be sufficient to mark only the methods that should be exported. Therefore the serializer should be configurable with a strategy which allows to decide on a case by case approach if all unmarked methods should be exported or not.

Change History

Changed 3 years ago by schst

  • status changed from new to assigned
  • milestone set to 0.2.0

Changed 3 years ago by schst

  • status changed from assigned to closed
  • resolution set to fixed

This is now possible by setting the option stubXMLSerializer::OPT_STRATEGY option with the serialize() method.

I will probably also add an @XMLStrategy annotation to make this configurable by class.

Changed 3 years ago by anonymous

  • milestone 0.2.0 deleted

Milestone 0.2.0 deleted

Note: See TracTickets for help on using tickets.