QuickFIX/J

proected empty constructor for Sesson class

Details

  • Type: Improvement Improvement
  • Status: Open 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 - 05/Apr/10 5:02 AM

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 - 05/Apr/10 5:02 AM 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

Vote (0)
Watch (1)

Dates

  • Created:
    29/Dec/09 11:16 AM
    Updated:
    05/Apr/10 1:18 PM