[QFJ-494] proected empty constructor for Sesson class Created: 29/Dec/09  Updated: 05/Apr/10

Status: Open
Project: QuickFIX/J
Component/s: Engine
Affects Version/s: 1.3.3
Fix Version/s: Future Releases

Type: Improvement Priority: Default
Reporter: Carlo Marchiori Assignee: Unassigned
Resolution: Unresolved Votes: 0
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.



 Comments   
Comment by Steve Bate [ 05/Apr/10 ]

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.

Generated at Thu Apr 25 00:34:00 UTC 2024 using JIRA 7.5.2#75007-sha1:9f5725bb824792b3230a5d8716f0c13e296a3cae.