QuickFIX/J
  1. QuickFIX/J
  2. QFJ-494

proected empty constructor for Sesson class

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Default Default
    • Resolution: Unresolved
    • Affects Version/s: 1.3.3
    • Fix Version/s: Future Releases
    • Component/s: Engine
    • Labels:
      None
    • Environment:
      n/a

      Description

      I'd like to create a wrapper implementation and subclass of the Session class.
      This wrapper is by default stateless, delegating behaviour to a true Session object.
      This is useful for example to start global transactions around the next methods.

      Currently Session has two constructor that can only create 'true' Sessions.

      An empty protected constructor may suffice.

      In fact, it's not clear why there is a SessionFactory interface when actually one cannot modify or decorate the default Session implementation.


        Activity

        Hide
        Steve Bate added a comment -

        IIRC, the Session interface was requested by a user for some purpose related to Spring. It's currently used for unit test support as well.

        We could potentially add an interface for Session, but have you considered using some form of AOP to implement the transaction hooks.

        Show
        Steve Bate added a comment - IIRC, the Session interface was requested by a user for some purpose related to Spring. It's currently used for unit test support as well. We could potentially add an interface for Session, but have you considered using some form of AOP to implement the transaction hooks.

          People

          • Assignee:
            Unassigned
            Reporter:
            Carlo Marchiori
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:

              Development