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

Make ProtocolStackConfigurator extend ProtocolHook

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 5.2.15
    • None
    • None

      In Infinispan, RELAY2 is the only protocol that needs to be configured programmatically. Tried to make use of Protocol after creation hook but it instantiates a new instance and all the state is lost.

      My proposal is to make ProtocolStackConfigurator extending the ProtocolHook. It invokes the method afterCreation() after each Protocol is created and before init().

      PoC on how it would be used: https://github.com/pruivo/infinispan/commit/af2d51523a13129c79bd638476a61bd5ab1894cd

            pruivo@redhat.com Pedro Ruivo
            pruivo@redhat.com Pedro Ruivo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: