Improve extensibility of session builder

Description

Every time we add a new programmatic argument to SessionBuilder, there is a breaking change on this method:

This extends to DefaultDriverContext's constructor. Even though DefaultDriverContext is an internal class, it would be wise to be conservative about its API, because plugging something through a custom context subclass is one of the most basic "advanced" extensions.

Both can be handled by passing a "parameter object", and I think we can even preserve backward compatibility.

Environment

None

Pull Requests

None

Status

Assignee

Olivier Michallat

Reporter

Olivier Michallat

Labels

None

PM Priority

None

Affects versions

None

Fix versions

Pull Request

None

Doc Impact

None

Size

None

External issue ID

None

External issue ID

None

Priority

Minor
Configure