James Server
  1. James Server
  2. JAMES-930

Refactor socket services to use composition instead of inheritance (AbstractProtocolServer to become a component)

    Details

      Description

      We should move from inheritance (done in JAMES-516) to composition for protocols and sockets.

      avalon-socket-library should be able to create a new socket service for a given protocol.
      socket <-> protocol should "talk" via service interfaces and no build time link should exists.

      This way we'll be able to introduce alternative socket handling libraries (like a MINA one). This is possible now that we moved to a line based push approach for the protocol: JAMES-750

        Activity

        Hide
        Stefano Bagnara added a comment -

        A first step is done. Some more refactoring will be needed in each protocol function in order to stop inheriting from AbstractProtocolServer and start implementing ProtocolHandlerFactory.

        Show
        Stefano Bagnara added a comment - A first step is done. Some more refactoring will be needed in each protocol function in order to stop inheriting from AbstractProtocolServer and start implementing ProtocolHandlerFactory.
        Hide
        Norman Maurer added a comment -

        done in trunk

        Show
        Norman Maurer added a comment - done in trunk

          People

          • Assignee:
            Norman Maurer
            Reporter:
            Stefano Bagnara
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development