Ticket #65 (closed enhancement: fixed)

Opened 1 year ago

Last modified 11 months ago

Different strategy for XMLSerializer

Reported by: mikey Assigned to: 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

06/06/07 18:02:45 changed by schst

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

06/10/07 12:30:41 changed 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.

07/02/07 10:40:45 changed by

  • milestone deleted.

Milestone 0.2.0 deleted