You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2021/08/19 12:41:42 UTC
[commons-dbcp] branch master updated: Javadoc.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-dbcp.git
The following commit(s) were added to refs/heads/master by this push:
new 435fc0a Javadoc.
435fc0a is described below
commit 435fc0ab040ad8615482738ff8bc332012d4a5bc
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Aug 19 08:41:40 2021 -0400
Javadoc.
---
.../java/org/apache/commons/dbcp2/BasicDataSource.java | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/commons/dbcp2/BasicDataSource.java b/src/main/java/org/apache/commons/dbcp2/BasicDataSource.java
index d6c829b..7bb89ad 100644
--- a/src/main/java/org/apache/commons/dbcp2/BasicDataSource.java
+++ b/src/main/java/org/apache/commons/dbcp2/BasicDataSource.java
@@ -99,7 +99,7 @@ public class BasicDataSource implements DataSource, BasicDataSourceMXBean, MBean
@SuppressWarnings("resource")
protected static void validateConnectionFactory(final PoolableConnectionFactory connectionFactory)
- throws Exception {
+ throws Exception {
PoolableConnection conn = null;
PooledObject<PoolableConnection> p = null;
try {
@@ -780,6 +780,11 @@ public class BasicDataSource implements DataSource, BasicDataSourceMXBean, MBean
return getConnectionInitSqls().toArray(Utils.EMPTY_STRING_ARRAY);
}
+ /**
+ * Gets the underlying connection pool.
+ *
+ * @return the underlying connection pool.
+ */
protected GenericObjectPool<PoolableConnection> getConnectionPool() {
return connectionPool;
}
@@ -1178,6 +1183,11 @@ public class BasicDataSource implements DataSource, BasicDataSourceMXBean, MBean
return this.password;
}
+ /**
+ * Gets the registered JMX ObjectName.
+ *
+ * @return the registered JMX ObjectName.
+ */
protected ObjectName getRegisteredJmxName() {
return ObjectNameWrapper.unwrap(registeredJmxObjectName);
}
@@ -1495,6 +1505,11 @@ public class BasicDataSource implements DataSource, BasicDataSourceMXBean, MBean
}
}
+ /**
+ * Logs the given message.
+ *
+ * @param message the message to log.
+ */
protected void log(final String message) {
if (logWriter != null) {
logWriter.println(message);