Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-987

Make many classes immutable

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Unresolved
    • Icon: Major Major
    • Future
    • None
    • None

      Currently, a lot of classes could be immutable if it wasn't for the readFrom() method to initialize itself from an input stream.

      However, if we had a factory, which reads and constructs immutable instances of classes, then we could turn a lot of classes into immutable classes, for example all headers should be immutable.

      The code for marshalling and unmarshalling could be generated, e.g. based on an XML description of the data layout of a class, or via annotations.

              rhn-engineering-bban Bela Ban
              rhn-engineering-bban Bela Ban
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated: