Skip to content

Commit 8c4fc46

Browse files
authored
Merge pull request #828 from hazendaz/develop
Make it clear that dbcp2 is in use not the original
2 parents 9bd4f4a + af2a478 commit 8c4fc46

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

src/main/java/org/mybatis/guice/datasource/dbcp/BasicDataSourceProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
import org.apache.commons.dbcp2.BasicDataSource;
2929

3030
/**
31-
* Provides the Apache commons-dbcp {@code BasicDataSource}.
31+
* Provides the Apache commons-dbcp2 {@code BasicDataSource}.
3232
*/
3333
public final class BasicDataSourceProvider implements Provider<DataSource> {
3434

src/main/java/org/mybatis/guice/datasource/dbcp/DriverAdapterCPDSProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
import org.apache.commons.dbcp2.cpdsadapter.DriverAdapterCPDS;
2727

2828
/**
29-
* Provides the Apache commons-dbcp {@code DriverAdapterCPDS}.
29+
* Provides the Apache commons-dbcp2 {@code DriverAdapterCPDS}.
3030
*/
3131
public final class DriverAdapterCPDSProvider implements Provider<ConnectionPoolDataSource> {
3232

src/main/java/org/mybatis/guice/datasource/dbcp/PerUserPoolDataSourceProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
import org.apache.commons.dbcp2.datasources.PerUserPoolDataSource;
2929

3030
/**
31-
* Provides the Apache commons-dbcp {@code PerUserPoolDataSource}.
31+
* Provides the Apache commons-dbcp2 {@code PerUserPoolDataSource}.
3232
*/
3333
public final class PerUserPoolDataSourceProvider implements Provider<DataSource> {
3434

src/main/java/org/mybatis/guice/datasource/dbcp/SharedPoolDataSourceProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
import org.apache.commons.dbcp2.datasources.SharedPoolDataSource;
2727

2828
/**
29-
* Provides the Apache commons-dbcp {@code SharedPoolDataSource}.
29+
* Provides the Apache commons-dbcp2 {@code SharedPoolDataSource}.
3030
*/
3131
public final class SharedPoolDataSourceProvider implements Provider<DataSource> {
3232

src/main/java/org/mybatis/guice/datasource/dbcp/package-info.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2009-2022 the original author or authors.
2+
* Copyright 2009-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -14,6 +14,6 @@
1414
* limitations under the License.
1515
*/
1616
/**
17-
* Contains Apache commons-dbcp Data Source providers.
17+
* Contains Apache commons-dbcp2 Data Source providers.
1818
*/
1919
package org.mybatis.guice.datasource.dbcp;

src/site/xdoc/datasources/dbcp.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
33
4-
Copyright 2009-2023 the original author or authors.
4+
Copyright 2009-2025 the original author or authors.
55
66
Licensed under the Apache License, Version 2.0 (the "License");
77
you may not use this file except in compliance with the License.
@@ -41,7 +41,7 @@
4141
<subsection name="Basic Data Source Provider">
4242
<p>
4343
The <code>org.mybatis.guice.datasource.dbcp.BasicDataSourceProvider</code>
44-
is the provider that builds the <code>org.apache.commons.dbcp.BasicDataSource</code>
44+
is the provider that builds the <code>org.apache.commons.dbcp2.BasicDataSource</code>
4545
and helps users to configure it.
4646
</p>
4747
<p>
@@ -179,7 +179,7 @@
179179
<subsection name="Shared Pool Data Source">
180180
<p>
181181
The <code>org.mybatis.guice.datasource.dbcp.SharedPoolDataSourceProvider</code>
182-
is the provider that builds the <code>org.apache.commons.dbcp.datasources.SharedPoolDataSource</code>
182+
is the provider that builds the <code>org.apache.commons.dbcp2.datasources.SharedPoolDataSource</code>
183183
and helps users to configure it.
184184
</p>
185185
<p>
@@ -301,7 +301,7 @@
301301
<subsection name="Per User Pool Data Source">
302302
<p>
303303
The <code>org.mybatis.guice.datasource.dbcp.PerUserPoolDataSourceProvider</code>
304-
is the provider that builds the <code>org.apache.commons.dbcp.datasources.PerUserPoolDataSource</code>
304+
is the provider that builds the <code>org.apache.commons.dbcp2.datasources.PerUserPoolDataSource</code>
305305
and helps users to configure it.
306306
</p>
307307
<p>
@@ -518,7 +518,7 @@ Injector injector = Guice.createInjector(
518518
<subsection name="Connection Pool Data Source driver adapter">
519519
<p>
520520
The <code>org.mybatis.guice.datasource.dbcp.DriverAdapterCPDSProvider</code>
521-
provides the <code>org.apache.commons.dbcp.cpdsadapter.DriverAdapterCPDS</code>
521+
provides the <code>org.apache.commons.dbcp2.cpdsadapter.DriverAdapterCPDS</code>
522522
adapter for jdbc drivers that do not include an implementation of
523523
<code>javax.sql.ConnectionPoolDataSource</code>.
524524
</p>

0 commit comments

Comments
 (0)