Skip to content

Commit 912b2ce

Browse files
authored
Add missing setter for connectionStringSource in MongoDb4Provider builder (#1390)
1 parent ee290eb commit 912b2ce

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

log4j-mongodb4/src/main/java/org/apache/logging/log4j/mongodb4/MongoDb4Provider.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ public MongoDb4Provider build() {
5959
return new MongoDb4Provider(connectionStringSource, capped, collectionSize);
6060
}
6161

62+
public B setConnectionStringSource(final String connectionStringSource) {
63+
this.connectionStringSource = connectionStringSource;
64+
return asBuilder();
65+
}
66+
6267
public B setCapped(final boolean isCapped) {
6368
this.capped = isCapped;
6469
return asBuilder();
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
Licensed to the Apache Software Foundation (ASF) under one or more
4+
contributor license agreements. See the NOTICE file distributed with
5+
this work for additional information regarding copyright ownership.
6+
The ASF licenses this file to You under the Apache License, Version 2.0
7+
(the "License"); you may not use this file except in compliance with
8+
the License. You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing, software
13+
distributed under the License is distributed on an "AS IS" BASIS,
14+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
See the License for the specific language governing permissions and
16+
limitations under the License.
17+
-->
18+
<entry xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
19+
xmlns="http://logging.apache.org/log4j/changelog"
20+
xsi:schemaLocation="http://logging.apache.org/log4j/changelog https://logging.apache.org/log4j/changelog-0.1.1.xsd"
21+
type="fixed">
22+
<issue id="1389" link="https://github.com/apache/logging-log4j2/issues/1389"/>
23+
<author id="ihordz" name="Ihor Dziuba"/>
24+
<author id="vy"/>
25+
<description format="asciidoc">Added missing setter for `connectionStringSource` in `MongoDb4Provider` builder</description>
26+
</entry>

0 commit comments

Comments
 (0)