Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NH-4032 - Multiple factories in thread static context. #644

Merged
merged 1 commit into from
Jun 20, 2017

Conversation

fredericDelaporte
Copy link
Member

@fredericDelaporte fredericDelaporte commented Jun 13, 2017

NH-4032 - Supports multiple factories with ThreadStaticSessionContext

ThreadStaticSessionContext does not currently supports multiple factories usage in a same context (thread in its case).
Supporting it should just be a mater of deriving from MapBasedSessionContext.
This is the only context having that limitation.
ThreadLocalSessionContext supports multiple factories but have a contrived implementation with debatable semantics, such as "auto-opening" a session at first request instead of mandating explicit bind/unbind operations. Its test case is not even activated due to the lack of the "auto-close on transaction end" feature implementation it requires for having its pattern making sense.

@fredericDelaporte fredericDelaporte changed the title NH-4032 - Multiples factory in thread static context. NH-4032 - Multiple factories in thread static context. Jun 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants