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

Please make MessageFactory static

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Minor Minor
    • 5.4
    • None
    • None
    • False
    • None
    • False

      Here's an idea for 5.4.

      PR: https://github.com/belaban/JGroups/pull/861

      This change makes MessageFactory into a static class similar to ClassConfigurator.

      This greatly simplifies adding custom message types, and also allows custom types to be used in Batch/CompositeMessage, which otherwise only allows the default types.

      This comes with the side effect that it's no longer possible to change how the default message types are generated, but this must be a much less common use case than registering custom types. And as a workaround, a new custom type can be registered instead of altering the default types.

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

                Created:
                Updated:
                Resolved: