Skip to content

Commit a77ef42

Browse files
committed
#828 Also report in changes since 6.0.0-beta-1
1 parent 3e53124 commit a77ef42

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/docs/asciidoc/release_notes.adoc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ For known issues, consult <<known-issues>>.
3737
The following was fixed or changed after 6.0.0-beta-1:
3838

3939
* Improvement: stacktraces produced by `FbExceptionBuilder` no longer include `StackTraceElements` of the builder itself (https://github.com/FirebirdSQL/jaybird/issues/827[#827])
40+
* Improvement: support for custom SocketFactory in connection string and data sources (https://github.com/FirebirdSQL/jaybird/issues/828[#828])
41+
+
42+
See also <<custom-socket-factory>>.
4043

4144
[#jaybird-6-0-0-beta-1-changelog]
4245
=== Jaybird 6.0.0-beta-1
@@ -108,6 +111,7 @@ See <<native-plugin>> for more information.
108111
* <<timestamp-localdate-localtime>>
109112
* <<no-close-after-last>>
110113
* <<scroll-rs-update-behavior>>
114+
* <<custom-socket-factory>>
111115
* ... and <<other-fixes-and-changes>>
112116

113117
Upgrading from Jaybird 5 should be straightforward, but please make sure to read <<compatibility-changes>> before using Jaybird 6.
@@ -1053,14 +1057,14 @@ If `socketFactory` is not specified, Jaybird will use `SocketFactory.getDefault(
10531057

10541058
The `SocketFactory` implementation must adhere to the following rules:
10551059

1056-
- The class must have a public constructor accepting a `java.util.Properties` object, or a public no-arg constructor.
1060+
- The class must have a public single-arg constructor accepting a `java.util.Properties` object, or a public no-arg constructor.
10571061
- The implementation of `SocketFactory#createSocket()` must return an unconnected socket;
10581062
the other `createSocket` methods are not called by Jaybird.
10591063
+
10601064
If you don't want to implement the other `createSocket` methods, we recommend throwing `java.lang.UnsupportedOperationException` with a clear message from those methods.
10611065

10621066
It is possible to pass custom connection properties to the socket factory if it has a public single-arg constructor accepting a `Properties` object.
1063-
Jaybird will instantiate the socket factory with a `Properties` object containing _only_ the connection properties with the suffix `@socketFactory` and a non-``null`` values;
1067+
Jaybird will instantiate the socket factory with a `Properties` object containing _only_ the connection properties with the suffix `@socketFactory` and non-``null`` values;
10641068
non-string values are converted to string.
10651069
In the future, we may also -- selectively -- pass other connection properties, but for now we only expose those properties that are explicitly set for the socket factory.
10661070

0 commit comments

Comments
 (0)