You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@commons.apache.org by gg...@apache.org on 2019/08/10 22:26:46 UTC
svn commit: r1048500 [27/39] - in
/websites/production/commons/content/proper: commons-pool/
commons-pool/apidocs/ commons-pool/apidocs/org/apache/commons/pool2/
commons-pool/apidocs/org/apache/commons/pool2/class-use/
commons-pool/apidocs/org/apache/c...
Added: websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2.proxy/JdkProxySource.java.html
==============================================================================
--- websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2.proxy/JdkProxySource.java.html (added)
+++ websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2.proxy/JdkProxySource.java.html Sat Aug 10 22:26:44 2019
@@ -0,0 +1,86 @@
+<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link rel="shortcut icon" href="../jacoco-resources/report.gif" type="image/gif"/><title>JdkProxySource.java</title><link rel="stylesheet" href="../jacoco-resources/prettify.css" type="text/css"/><script type="text/javascript" src="../jacoco-resources/prettify.js"></script></head><body onload="window['PR_TAB_WIDTH']=4;prettyPrint()"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">Apache Commons Pool</a> > <a href="index.source.html" class="el_package">org.apache.commons.pool2.proxy</a> > <span class="el_source
">JdkProxySource.java</span></div><h1>JdkProxySource.java</h1><pre class="source lang-java linenums">/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.commons.pool2.proxy;
+
+import java.lang.reflect.Proxy;
+import java.util.Arrays;
+
+import org.apache.commons.pool2.UsageTracking;
+
+/**
+ * Provides proxy objects using Java reflection.
+ *
+ * @param <T> type of the pooled object to be proxied
+ *
+ * @since 2.0
+ */
+public class JdkProxySource<T> implements ProxySource<T> {
+
+ private final ClassLoader classLoader;
+ private final Class<?>[] interfaces;
+
+
+ /**
+ * Create a new proxy source for the given interfaces.
+ *
+ * @param classLoader The class loader with which to create the proxy
+ * @param interfaces The interfaces to proxy
+ */
+<span class="fc" id="L43"> public JdkProxySource(final ClassLoader classLoader, final Class<?>[] interfaces) {</span>
+<span class="fc" id="L44"> this.classLoader = classLoader;</span>
+ // Defensive copy
+<span class="fc" id="L46"> this.interfaces = new Class<?>[interfaces.length];</span>
+<span class="fc" id="L47"> System.arraycopy(interfaces, 0, this.interfaces, 0, interfaces.length);</span>
+<span class="fc" id="L48"> }</span>
+
+
+ @Override
+ public T createProxy(final T pooledObject, final UsageTracking<T> usageTracking) {
+ @SuppressWarnings("unchecked")
+ final
+<span class="fc" id="L55"> T proxy = (T) Proxy.newProxyInstance(classLoader, interfaces,</span>
+ new JdkProxyHandler<>(pooledObject, usageTracking));
+<span class="fc" id="L57"> return proxy;</span>
+ }
+
+
+ @Override
+ public T resolveProxy(final T proxy) {
+ @SuppressWarnings("unchecked")
+ final
+<span class="fc" id="L65"> JdkProxyHandler<T> jdkProxyHandler =</span>
+<span class="fc" id="L66"> (JdkProxyHandler<T>) Proxy.getInvocationHandler(proxy);</span>
+<span class="fc" id="L67"> final T pooledObject = jdkProxyHandler.disableProxy();</span>
+<span class="fc" id="L68"> return pooledObject;</span>
+ }
+
+
+ /**
+ * @since 2.4.3
+ */
+ @Override
+ public String toString() {
+<span class="nc" id="L77"> final StringBuilder builder = new StringBuilder();</span>
+<span class="nc" id="L78"> builder.append("JdkProxySource [classLoader=");</span>
+<span class="nc" id="L79"> builder.append(classLoader);</span>
+<span class="nc" id="L80"> builder.append(", interfaces=");</span>
+<span class="nc" id="L81"> builder.append(Arrays.toString(interfaces));</span>
+<span class="nc" id="L82"> builder.append("]");</span>
+<span class="nc" id="L83"> return builder.toString();</span>
+ }
+}
+</pre><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.3.201901230119</span></div></body></html>
\ No newline at end of file
Added: websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2.proxy/ProxiedKeyedObjectPool.html
==============================================================================
--- websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2.proxy/ProxiedKeyedObjectPool.html (added)
+++ websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2.proxy/ProxiedKeyedObjectPool.html Sat Aug 10 22:26:44 2019
@@ -0,0 +1 @@
+<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link rel="shortcut icon" href="../jacoco-resources/report.gif" type="image/gif"/><title>ProxiedKeyedObjectPool</title><script type="text/javascript" src="../jacoco-resources/sort.js"></script></head><body onload="initialSort(['breadcrumb'])"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">Apache Commons Pool</a> > <a href="index.html" class="el_package">org.apache.commons.pool2.proxy</a> > <span class="el_class">ProxiedKeyedObjectPool</span></div><h1>ProxiedKeyedObjectPool</h1><table class="coverage" cellspac
ing="0" id="coveragetable"><thead><tr><td class="sortable" id="a" onclick="toggleSort(this)">Element</td><td class="down sortable bar" id="b" onclick="toggleSort(this)">Missed Instructions</td><td class="sortable ctr2" id="c" onclick="toggleSort(this)">Cov.</td><td class="sortable bar" id="d" onclick="toggleSort(this)">Missed Branches</td><td class="sortable ctr2" id="e" onclick="toggleSort(this)">Cov.</td><td class="sortable ctr1" id="f" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="g" onclick="toggleSort(this)">Cxty</td><td class="sortable ctr1" id="h" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="i" onclick="toggleSort(this)">Lines</td><td class="sortable ctr1" id="j" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="k" onclick="toggleSort(this)">Methods</td></tr></thead><tfoot><tr><td>Total</td><td class="bar">48 of 119</td><td class="ctr2">59%</td><td class="bar">1 of 2</td><td class="ctr2">50%</td><td class="ctr1">5
</td><td class="ctr2">14</td><td class="ctr1">12</td><td class="ctr2">35</td><td class="ctr1">4</td><td class="ctr2">13</td></tr></tfoot><tbody><tr><td id="a12"><a href="ProxiedKeyedObjectPool.java.html#L126" class="el_method">toString()</a></td><td class="bar" id="b0"><img src="../jacoco-resources/redbar.gif" width="120" height="10" title="29" alt="29"/></td><td class="ctr2" id="c9">0%</td><td class="bar" id="d1"/><td class="ctr2" id="e1">n/a</td><td class="ctr1" id="f0">1</td><td class="ctr2" id="g1">1</td><td class="ctr1" id="h0">7</td><td class="ctr2" id="i0">7</td><td class="ctr1" id="j0">1</td><td class="ctr2" id="k0">1</td></tr><tr><td id="a8"><a href="ProxiedKeyedObjectPool.java.html#L87" class="el_method">getNumIdle(Object)</a></td><td class="bar" id="b1"><img src="../jacoco-resources/redbar.gif" width="20" height="10" title="5" alt="5"/></td><td class="ctr2" id="c10">0%</td><td class="bar" id="d2"/><td class="ctr2" id="e2">n/a</td><td class="ctr1" id="f1">1</td><td class="
ctr2" id="g2">1</td><td class="ctr1" id="h2">1</td><td class="ctr2" id="i9">1</td><td class="ctr1" id="j1">1</td><td class="ctr2" id="k1">1</td></tr><tr><td id="a6"><a href="ProxiedKeyedObjectPool.java.html#L92" class="el_method">getNumActive(Object)</a></td><td class="bar" id="b2"><img src="../jacoco-resources/redbar.gif" width="20" height="10" title="5" alt="5"/></td><td class="ctr2" id="c11">0%</td><td class="bar" id="d3"/><td class="ctr2" id="e3">n/a</td><td class="ctr1" id="f2">1</td><td class="ctr2" id="g3">1</td><td class="ctr1" id="h3">1</td><td class="ctr2" id="i10">1</td><td class="ctr1" id="j2">1</td><td class="ctr2" id="k2">1</td></tr><tr><td id="a3"><a href="ProxiedKeyedObjectPool.java.html#L112" class="el_method">clear(Object)</a></td><td class="bar" id="b3"><img src="../jacoco-resources/redbar.gif" width="20" height="10" title="5" alt="5"/></td><td class="ctr2" id="c12">0%</td><td class="bar" id="d4"/><td class="ctr2" id="e4">n/a</td><td class="ctr1" id="f3">1</td><td
class="ctr2" id="g4">1</td><td class="ctr1" id="h1">2</td><td class="ctr2" id="i5">2</td><td class="ctr1" id="j3">1</td><td class="ctr2" id="k3">1</td></tr><tr><td id="a1"><a href="ProxiedKeyedObjectPool.java.html#L58" class="el_method">borrowObject(Object)</a></td><td class="bar" id="b4"><img src="../jacoco-resources/redbar.gif" width="16" height="10" title="4" alt="4"/><img src="../jacoco-resources/greenbar.gif" width="78" height="10" title="19" alt="19"/></td><td class="ctr2" id="c8">82%</td><td class="bar" id="d0"><img src="../jacoco-resources/redbar.gif" width="60" height="10" title="1" alt="1"/><img src="../jacoco-resources/greenbar.gif" width="60" height="10" title="1" alt="1"/></td><td class="ctr2" id="e0">50%</td><td class="ctr1" id="f4">1</td><td class="ctr2" id="g0">2</td><td class="ctr1" id="h4">1</td><td class="ctr2" id="i1">6</td><td class="ctr1" id="j4">0</td><td class="ctr2" id="k4">1</td></tr><tr><td id="a11"><a href="ProxiedKeyedObjectPool.java.html#L69" class="el
_method">returnObject(Object, Object)</a></td><td class="bar" id="b5"><img src="../jacoco-resources/greenbar.gif" width="45" height="10" title="11" alt="11"/></td><td class="ctr2" id="c0">100%</td><td class="bar" id="d5"/><td class="ctr2" id="e5">n/a</td><td class="ctr1" id="f5">0</td><td class="ctr2" id="g5">1</td><td class="ctr1" id="h5">0</td><td class="ctr2" id="i3">3</td><td class="ctr1" id="j5">0</td><td class="ctr2" id="k5">1</td></tr><tr><td id="a9"><a href="ProxiedKeyedObjectPool.java.html#L75" class="el_method">invalidateObject(Object, Object)</a></td><td class="bar" id="b6"><img src="../jacoco-resources/greenbar.gif" width="45" height="10" title="11" alt="11"/></td><td class="ctr2" id="c1">100%</td><td class="bar" id="d6"/><td class="ctr2" id="e6">n/a</td><td class="ctr1" id="f6">0</td><td class="ctr2" id="g6">1</td><td class="ctr1" id="h6">0</td><td class="ctr2" id="i4">3</td><td class="ctr1" id="j6">0</td><td class="ctr2" id="k6">1</td></tr><tr><td id="a10"><a href="Pro
xiedKeyedObjectPool.java.html#L48" class="el_method">ProxiedKeyedObjectPool(KeyedObjectPool, ProxySource)</a></td><td class="bar" id="b7"><img src="../jacoco-resources/greenbar.gif" width="37" height="10" title="9" alt="9"/></td><td class="ctr2" id="c2">100%</td><td class="bar" id="d7"/><td class="ctr2" id="e7">n/a</td><td class="ctr1" id="f7">0</td><td class="ctr2" id="g7">1</td><td class="ctr1" id="h7">0</td><td class="ctr2" id="i2">4</td><td class="ctr1" id="j7">0</td><td class="ctr2" id="k7">1</td></tr><tr><td id="a0"><a href="ProxiedKeyedObjectPool.java.html#L82" class="el_method">addObject(Object)</a></td><td class="bar" id="b8"><img src="../jacoco-resources/greenbar.gif" width="20" height="10" title="5" alt="5"/></td><td class="ctr2" id="c3">100%</td><td class="bar" id="d8"/><td class="ctr2" id="e8">n/a</td><td class="ctr1" id="f8">0</td><td class="ctr2" id="g8">1</td><td class="ctr1" id="h8">0</td><td class="ctr2" id="i6">2</td><td class="ctr1" id="j8">0</td><td class="ctr2"
id="k8">1</td></tr><tr><td id="a7"><a href="ProxiedKeyedObjectPool.java.html#L97" class="el_method">getNumIdle()</a></td><td class="bar" id="b9"><img src="../jacoco-resources/greenbar.gif" width="16" height="10" title="4" alt="4"/></td><td class="ctr2" id="c4">100%</td><td class="bar" id="d9"/><td class="ctr2" id="e9">n/a</td><td class="ctr1" id="f9">0</td><td class="ctr2" id="g9">1</td><td class="ctr1" id="h9">0</td><td class="ctr2" id="i11">1</td><td class="ctr1" id="j9">0</td><td class="ctr2" id="k9">1</td></tr><tr><td id="a5"><a href="ProxiedKeyedObjectPool.java.html#L102" class="el_method">getNumActive()</a></td><td class="bar" id="b10"><img src="../jacoco-resources/greenbar.gif" width="16" height="10" title="4" alt="4"/></td><td class="ctr2" id="c5">100%</td><td class="bar" id="d10"/><td class="ctr2" id="e10">n/a</td><td class="ctr1" id="f10">0</td><td class="ctr2" id="g10">1</td><td class="ctr1" id="h10">0</td><td class="ctr2" id="i12">1</td><td class="ctr1" id="j10">0</td><
td class="ctr2" id="k10">1</td></tr><tr><td id="a2"><a href="ProxiedKeyedObjectPool.java.html#L107" class="el_method">clear()</a></td><td class="bar" id="b11"><img src="../jacoco-resources/greenbar.gif" width="16" height="10" title="4" alt="4"/></td><td class="ctr2" id="c6">100%</td><td class="bar" id="d11"/><td class="ctr2" id="e11">n/a</td><td class="ctr1" id="f11">0</td><td class="ctr2" id="g11">1</td><td class="ctr1" id="h11">0</td><td class="ctr2" id="i7">2</td><td class="ctr1" id="j11">0</td><td class="ctr2" id="k11">1</td></tr><tr><td id="a4"><a href="ProxiedKeyedObjectPool.java.html#L117" class="el_method">close()</a></td><td class="bar" id="b12"><img src="../jacoco-resources/greenbar.gif" width="16" height="10" title="4" alt="4"/></td><td class="ctr2" id="c7">100%</td><td class="bar" id="d12"/><td class="ctr2" id="e12">n/a</td><td class="ctr1" id="f12">0</td><td class="ctr2" id="g12">1</td><td class="ctr1" id="h12">0</td><td class="ctr2" id="i8">2</td><td class="ctr1" id="j
12">0</td><td class="ctr2" id="k12">1</td></tr></tbody></table><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.3.201901230119</span></div></body></html>
\ No newline at end of file
Added: websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2.proxy/ProxiedKeyedObjectPool.java.html
==============================================================================
--- websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2.proxy/ProxiedKeyedObjectPool.java.html (added)
+++ websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2.proxy/ProxiedKeyedObjectPool.java.html Sat Aug 10 22:26:44 2019
@@ -0,0 +1,135 @@
+<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link rel="shortcut icon" href="../jacoco-resources/report.gif" type="image/gif"/><title>ProxiedKeyedObjectPool.java</title><link rel="stylesheet" href="../jacoco-resources/prettify.css" type="text/css"/><script type="text/javascript" src="../jacoco-resources/prettify.js"></script></head><body onload="window['PR_TAB_WIDTH']=4;prettyPrint()"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">Apache Commons Pool</a> > <a href="index.source.html" class="el_package">org.apache.commons.pool2.proxy</a> > <span class="e
l_source">ProxiedKeyedObjectPool.java</span></div><h1>ProxiedKeyedObjectPool.java</h1><pre class="source lang-java linenums">/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.commons.pool2.proxy;
+
+import java.util.NoSuchElementException;
+
+import org.apache.commons.pool2.KeyedObjectPool;
+import org.apache.commons.pool2.UsageTracking;
+
+/**
+ * Create a new keyed object pool where the pooled objects are wrapped in
+ * proxies allowing better control of pooled objects and in particular the
+ * prevention of the continued use of an object by a client after that client
+ * returns the object to the pool.
+ *
+ * @param <K> type of the key
+ * @param <V> type of the pooled object
+ *
+ * @since 2.0
+ */
+public class ProxiedKeyedObjectPool<K, V> implements KeyedObjectPool<K, V> {
+
+ private final KeyedObjectPool<K, V> pool;
+ private final ProxySource<V> proxySource;
+
+
+ /**
+ * Create a new proxied object pool.
+ *
+ * @param pool The object pool to wrap
+ * @param proxySource The source of the proxy objects
+ */
+ public ProxiedKeyedObjectPool(final KeyedObjectPool<K, V> pool,
+<span class="fc" id="L48"> final ProxySource<V> proxySource) {</span>
+<span class="fc" id="L49"> this.pool = pool;</span>
+<span class="fc" id="L50"> this.proxySource = proxySource;</span>
+<span class="fc" id="L51"> }</span>
+
+
+ @SuppressWarnings("unchecked")
+ @Override
+ public V borrowObject(final K key) throws Exception, NoSuchElementException,
+ IllegalStateException {
+<span class="fc" id="L58"> UsageTracking<V> usageTracking = null;</span>
+<span class="pc bpc" id="L59" title="1 of 2 branches missed."> if (pool instanceof UsageTracking) {</span>
+<span class="nc" id="L60"> usageTracking = (UsageTracking<V>) pool;</span>
+ }
+<span class="fc" id="L62"> final V pooledObject = pool.borrowObject(key);</span>
+<span class="fc" id="L63"> final V proxy = proxySource.createProxy(pooledObject, usageTracking);</span>
+<span class="fc" id="L64"> return proxy;</span>
+ }
+
+ @Override
+ public void returnObject(final K key, final V proxy) throws Exception {
+<span class="fc" id="L69"> final V pooledObject = proxySource.resolveProxy(proxy);</span>
+<span class="fc" id="L70"> pool.returnObject(key, pooledObject);</span>
+<span class="fc" id="L71"> }</span>
+
+ @Override
+ public void invalidateObject(final K key, final V proxy) throws Exception {
+<span class="fc" id="L75"> final V pooledObject = proxySource.resolveProxy(proxy);</span>
+<span class="fc" id="L76"> pool.invalidateObject(key, pooledObject);</span>
+<span class="fc" id="L77"> }</span>
+
+ @Override
+ public void addObject(final K key) throws Exception, IllegalStateException,
+ UnsupportedOperationException {
+<span class="fc" id="L82"> pool.addObject(key);</span>
+<span class="fc" id="L83"> }</span>
+
+ @Override
+ public int getNumIdle(final K key) {
+<span class="nc" id="L87"> return pool.getNumIdle(key);</span>
+ }
+
+ @Override
+ public int getNumActive(final K key) {
+<span class="nc" id="L92"> return pool.getNumActive(key);</span>
+ }
+
+ @Override
+ public int getNumIdle() {
+<span class="fc" id="L97"> return pool.getNumIdle();</span>
+ }
+
+ @Override
+ public int getNumActive() {
+<span class="fc" id="L102"> return pool.getNumActive();</span>
+ }
+
+ @Override
+ public void clear() throws Exception, UnsupportedOperationException {
+<span class="fc" id="L107"> pool.clear();</span>
+<span class="fc" id="L108"> }</span>
+
+ @Override
+ public void clear(final K key) throws Exception, UnsupportedOperationException {
+<span class="nc" id="L112"> pool.clear(key);</span>
+<span class="nc" id="L113"> }</span>
+
+ @Override
+ public void close() {
+<span class="fc" id="L117"> pool.close();</span>
+<span class="fc" id="L118"> }</span>
+
+
+ /**
+ * @since 2.4.3
+ */
+ @Override
+ public String toString() {
+<span class="nc" id="L126"> final StringBuilder builder = new StringBuilder();</span>
+<span class="nc" id="L127"> builder.append("ProxiedKeyedObjectPool [pool=");</span>
+<span class="nc" id="L128"> builder.append(pool);</span>
+<span class="nc" id="L129"> builder.append(", proxySource=");</span>
+<span class="nc" id="L130"> builder.append(proxySource);</span>
+<span class="nc" id="L131"> builder.append("]");</span>
+<span class="nc" id="L132"> return builder.toString();</span>
+ }
+}
+</pre><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.3.201901230119</span></div></body></html>
\ No newline at end of file
Added: websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2.proxy/ProxiedObjectPool.html
==============================================================================
--- websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2.proxy/ProxiedObjectPool.html (added)
+++ websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2.proxy/ProxiedObjectPool.html Sat Aug 10 22:26:44 2019
@@ -0,0 +1 @@
+<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link rel="shortcut icon" href="../jacoco-resources/report.gif" type="image/gif"/><title>ProxiedObjectPool</title><script type="text/javascript" src="../jacoco-resources/sort.js"></script></head><body onload="initialSort(['breadcrumb'])"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">Apache Commons Pool</a> > <a href="index.html" class="el_package">org.apache.commons.pool2.proxy</a> > <span class="el_class">ProxiedObjectPool</span></div><h1>ProxiedObjectPool</h1><table class="coverage" cellspacing="0" id="cov
eragetable"><thead><tr><td class="sortable" id="a" onclick="toggleSort(this)">Element</td><td class="down sortable bar" id="b" onclick="toggleSort(this)">Missed Instructions</td><td class="sortable ctr2" id="c" onclick="toggleSort(this)">Cov.</td><td class="sortable bar" id="d" onclick="toggleSort(this)">Missed Branches</td><td class="sortable ctr2" id="e" onclick="toggleSort(this)">Cov.</td><td class="sortable ctr1" id="f" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="g" onclick="toggleSort(this)">Cxty</td><td class="sortable ctr1" id="h" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="i" onclick="toggleSort(this)">Lines</td><td class="sortable ctr1" id="j" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="k" onclick="toggleSort(this)">Methods</td></tr></thead><tfoot><tr><td>Total</td><td class="bar">29 of 100</td><td class="ctr2">71%</td><td class="bar">1 of 2</td><td class="ctr2">50%</td><td class="ctr1">2</td><td class=
"ctr2">11</td><td class="ctr1">7</td><td class="ctr2">31</td><td class="ctr1">1</td><td class="ctr2">10</td></tr></tfoot><tbody><tr><td id="a9"><a href="ProxiedObjectPool.java.html#L118" class="el_method">toString()</a></td><td class="bar" id="b0"><img src="../jacoco-resources/redbar.gif" width="120" height="10" title="29" alt="29"/></td><td class="ctr2" id="c9">0%</td><td class="bar" id="d1"/><td class="ctr2" id="e1">n/a</td><td class="ctr1" id="f0">1</td><td class="ctr2" id="g1">1</td><td class="ctr1" id="h0">7</td><td class="ctr2" id="i0">7</td><td class="ctr1" id="j0">1</td><td class="ctr2" id="k0">1</td></tr><tr><td id="a1"><a href="ProxiedObjectPool.java.html#L58" class="el_method">borrowObject()</a></td><td class="bar" id="b1"><img src="../jacoco-resources/greenbar.gif" width="91" height="10" title="22" alt="22"/></td><td class="ctr2" id="c0">100%</td><td class="bar" id="d0"><img src="../jacoco-resources/redbar.gif" width="60" height="10" title="1" alt="1"/><img src="../jacoc
o-resources/greenbar.gif" width="60" height="10" title="1" alt="1"/></td><td class="ctr2" id="e0">50%</td><td class="ctr1" id="f1">1</td><td class="ctr2" id="g0">2</td><td class="ctr1" id="h1">0</td><td class="ctr2" id="i1">6</td><td class="ctr1" id="j1">0</td><td class="ctr2" id="k1">1</td></tr><tr><td id="a8"><a href="ProxiedObjectPool.java.html#L70" class="el_method">returnObject(Object)</a></td><td class="bar" id="b2"><img src="../jacoco-resources/greenbar.gif" width="41" height="10" title="10" alt="10"/></td><td class="ctr2" id="c1">100%</td><td class="bar" id="d2"/><td class="ctr2" id="e2">n/a</td><td class="ctr1" id="f2">0</td><td class="ctr2" id="g2">1</td><td class="ctr1" id="h2">0</td><td class="ctr2" id="i3">3</td><td class="ctr1" id="j2">0</td><td class="ctr2" id="k2">1</td></tr><tr><td id="a6"><a href="ProxiedObjectPool.java.html#L77" class="el_method">invalidateObject(Object)</a></td><td class="bar" id="b3"><img src="../jacoco-resources/greenbar.gif" width="41" height=
"10" title="10" alt="10"/></td><td class="ctr2" id="c2">100%</td><td class="bar" id="d3"/><td class="ctr2" id="e3">n/a</td><td class="ctr1" id="f3">0</td><td class="ctr2" id="g3">1</td><td class="ctr1" id="h3">0</td><td class="ctr2" id="i4">3</td><td class="ctr1" id="j3">0</td><td class="ctr2" id="k3">1</td></tr><tr><td id="a7"><a href="ProxiedObjectPool.java.html#L46" class="el_method">ProxiedObjectPool(ObjectPool, ProxySource)</a></td><td class="bar" id="b4"><img src="../jacoco-resources/greenbar.gif" width="37" height="10" title="9" alt="9"/></td><td class="ctr2" id="c3">100%</td><td class="bar" id="d4"/><td class="ctr2" id="e4">n/a</td><td class="ctr1" id="f4">0</td><td class="ctr2" id="g4">1</td><td class="ctr1" id="h4">0</td><td class="ctr2" id="i2">4</td><td class="ctr1" id="j4">0</td><td class="ctr2" id="k4">1</td></tr><tr><td id="a0"><a href="ProxiedObjectPool.java.html#L85" class="el_method">addObject()</a></td><td class="bar" id="b5"><img src="../jacoco-resources/greenbar
.gif" width="16" height="10" title="4" alt="4"/></td><td class="ctr2" id="c4">100%</td><td class="bar" id="d5"/><td class="ctr2" id="e5">n/a</td><td class="ctr1" id="f5">0</td><td class="ctr2" id="g5">1</td><td class="ctr1" id="h5">0</td><td class="ctr2" id="i5">2</td><td class="ctr1" id="j5">0</td><td class="ctr2" id="k5">1</td></tr><tr><td id="a5"><a href="ProxiedObjectPool.java.html#L91" class="el_method">getNumIdle()</a></td><td class="bar" id="b6"><img src="../jacoco-resources/greenbar.gif" width="16" height="10" title="4" alt="4"/></td><td class="ctr2" id="c5">100%</td><td class="bar" id="d6"/><td class="ctr2" id="e6">n/a</td><td class="ctr1" id="f6">0</td><td class="ctr2" id="g6">1</td><td class="ctr1" id="h6">0</td><td class="ctr2" id="i8">1</td><td class="ctr1" id="j6">0</td><td class="ctr2" id="k6">1</td></tr><tr><td id="a4"><a href="ProxiedObjectPool.java.html#L97" class="el_method">getNumActive()</a></td><td class="bar" id="b7"><img src="../jacoco-resources/greenbar.gif"
width="16" height="10" title="4" alt="4"/></td><td class="ctr2" id="c6">100%</td><td class="bar" id="d7"/><td class="ctr2" id="e7">n/a</td><td class="ctr1" id="f7">0</td><td class="ctr2" id="g7">1</td><td class="ctr1" id="h7">0</td><td class="ctr2" id="i9">1</td><td class="ctr1" id="j7">0</td><td class="ctr2" id="k7">1</td></tr><tr><td id="a2"><a href="ProxiedObjectPool.java.html#L103" class="el_method">clear()</a></td><td class="bar" id="b8"><img src="../jacoco-resources/greenbar.gif" width="16" height="10" title="4" alt="4"/></td><td class="ctr2" id="c7">100%</td><td class="bar" id="d8"/><td class="ctr2" id="e8">n/a</td><td class="ctr1" id="f8">0</td><td class="ctr2" id="g8">1</td><td class="ctr1" id="h8">0</td><td class="ctr2" id="i6">2</td><td class="ctr1" id="j8">0</td><td class="ctr2" id="k8">1</td></tr><tr><td id="a3"><a href="ProxiedObjectPool.java.html#L109" class="el_method">close()</a></td><td class="bar" id="b9"><img src="../jacoco-resources/greenbar.gif" width="16" hei
ght="10" title="4" alt="4"/></td><td class="ctr2" id="c8">100%</td><td class="bar" id="d9"/><td class="ctr2" id="e9">n/a</td><td class="ctr1" id="f9">0</td><td class="ctr2" id="g9">1</td><td class="ctr1" id="h9">0</td><td class="ctr2" id="i7">2</td><td class="ctr1" id="j9">0</td><td class="ctr2" id="k9">1</td></tr></tbody></table><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.3.201901230119</span></div></body></html>
\ No newline at end of file
Added: websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2.proxy/ProxiedObjectPool.java.html
==============================================================================
--- websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2.proxy/ProxiedObjectPool.java.html (added)
+++ websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2.proxy/ProxiedObjectPool.java.html Sat Aug 10 22:26:44 2019
@@ -0,0 +1,127 @@
+<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link rel="shortcut icon" href="../jacoco-resources/report.gif" type="image/gif"/><title>ProxiedObjectPool.java</title><link rel="stylesheet" href="../jacoco-resources/prettify.css" type="text/css"/><script type="text/javascript" src="../jacoco-resources/prettify.js"></script></head><body onload="window['PR_TAB_WIDTH']=4;prettyPrint()"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">Apache Commons Pool</a> > <a href="index.source.html" class="el_package">org.apache.commons.pool2.proxy</a> > <span class="el_sou
rce">ProxiedObjectPool.java</span></div><h1>ProxiedObjectPool.java</h1><pre class="source lang-java linenums">/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.commons.pool2.proxy;
+
+import java.util.NoSuchElementException;
+
+import org.apache.commons.pool2.ObjectPool;
+import org.apache.commons.pool2.UsageTracking;
+
+/**
+ * Create a new object pool where the pooled objects are wrapped in proxies
+ * allowing better control of pooled objects and in particular the prevention
+ * of the continued use of an object by a client after that client returns the
+ * object to the pool.
+ *
+ * @param <T> type of the pooled object
+ *
+ * @since 2.0
+ */
+public class ProxiedObjectPool<T> implements ObjectPool<T> {
+
+ private final ObjectPool<T> pool;
+ private final ProxySource<T> proxySource;
+
+
+ /**
+ * Create a new proxied object pool.
+ *
+ * @param pool The object pool to wrap
+ * @param proxySource The source of the proxy objects
+ */
+<span class="fc" id="L46"> public ProxiedObjectPool(final ObjectPool<T> pool, final ProxySource<T> proxySource) {</span>
+<span class="fc" id="L47"> this.pool = pool;</span>
+<span class="fc" id="L48"> this.proxySource = proxySource;</span>
+<span class="fc" id="L49"> }</span>
+
+
+ // --------------------------------------------------- ObjectPool<T> methods
+
+ @SuppressWarnings("unchecked")
+ @Override
+ public T borrowObject() throws Exception, NoSuchElementException,
+ IllegalStateException {
+<span class="fc" id="L58"> UsageTracking<T> usageTracking = null;</span>
+<span class="pc bpc" id="L59" title="1 of 2 branches missed."> if (pool instanceof UsageTracking) {</span>
+<span class="fc" id="L60"> usageTracking = (UsageTracking<T>) pool;</span>
+ }
+<span class="fc" id="L62"> final T pooledObject = pool.borrowObject();</span>
+<span class="fc" id="L63"> final T proxy = proxySource.createProxy(pooledObject, usageTracking);</span>
+<span class="fc" id="L64"> return proxy;</span>
+ }
+
+
+ @Override
+ public void returnObject(final T proxy) throws Exception {
+<span class="fc" id="L70"> final T pooledObject = proxySource.resolveProxy(proxy);</span>
+<span class="fc" id="L71"> pool.returnObject(pooledObject);</span>
+<span class="fc" id="L72"> }</span>
+
+
+ @Override
+ public void invalidateObject(final T proxy) throws Exception {
+<span class="fc" id="L77"> final T pooledObject = proxySource.resolveProxy(proxy);</span>
+<span class="fc" id="L78"> pool.invalidateObject(pooledObject);</span>
+<span class="fc" id="L79"> }</span>
+
+
+ @Override
+ public void addObject() throws Exception, IllegalStateException,
+ UnsupportedOperationException {
+<span class="fc" id="L85"> pool.addObject();</span>
+<span class="fc" id="L86"> }</span>
+
+
+ @Override
+ public int getNumIdle() {
+<span class="fc" id="L91"> return pool.getNumIdle();</span>
+ }
+
+
+ @Override
+ public int getNumActive() {
+<span class="fc" id="L97"> return pool.getNumActive();</span>
+ }
+
+
+ @Override
+ public void clear() throws Exception, UnsupportedOperationException {
+<span class="fc" id="L103"> pool.clear();</span>
+<span class="fc" id="L104"> }</span>
+
+
+ @Override
+ public void close() {
+<span class="fc" id="L109"> pool.close();</span>
+<span class="fc" id="L110"> }</span>
+
+
+ /**
+ * @since 2.4.3
+ */
+ @Override
+ public String toString() {
+<span class="nc" id="L118"> final StringBuilder builder = new StringBuilder();</span>
+<span class="nc" id="L119"> builder.append("ProxiedObjectPool [pool=");</span>
+<span class="nc" id="L120"> builder.append(pool);</span>
+<span class="nc" id="L121"> builder.append(", proxySource=");</span>
+<span class="nc" id="L122"> builder.append(proxySource);</span>
+<span class="nc" id="L123"> builder.append("]");</span>
+<span class="nc" id="L124"> return builder.toString();</span>
+ }
+}
+</pre><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.3.201901230119</span></div></body></html>
\ No newline at end of file
Added: websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2.proxy/index.html
==============================================================================
--- websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2.proxy/index.html (added)
+++ websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2.proxy/index.html Sat Aug 10 22:26:44 2019
@@ -0,0 +1 @@
+<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link rel="shortcut icon" href="../jacoco-resources/report.gif" type="image/gif"/><title>org.apache.commons.pool2.proxy</title><script type="text/javascript" src="../jacoco-resources/sort.js"></script></head><body onload="initialSort(['breadcrumb', 'coveragetable'])"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="index.source.html" class="el_source">Source Files</a><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">Apache Commons Pool</a> > <span class="el_package">org.apache.commons.pool2.proxy</span></div><h1>org.apache.commons.pool2.proxy</h1><table
class="coverage" cellspacing="0" id="coveragetable"><thead><tr><td class="sortable" id="a" onclick="toggleSort(this)">Element</td><td class="down sortable bar" id="b" onclick="toggleSort(this)">Missed Instructions</td><td class="sortable ctr2" id="c" onclick="toggleSort(this)">Cov.</td><td class="sortable bar" id="d" onclick="toggleSort(this)">Missed Branches</td><td class="sortable ctr2" id="e" onclick="toggleSort(this)">Cov.</td><td class="sortable ctr1" id="f" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="g" onclick="toggleSort(this)">Cxty</td><td class="sortable ctr1" id="h" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="i" onclick="toggleSort(this)">Lines</td><td class="sortable ctr1" id="j" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="k" onclick="toggleSort(this)">Methods</td><td class="sortable ctr1" id="l" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="m" onclick="toggleSort(this)">Classes
</td></tr></thead><tfoot><tr><td>Total</td><td class="bar">162 of 450</td><td class="ctr2">64%</td><td class="bar">2 of 8</td><td class="ctr2">75%</td><td class="ctr1">10</td><td class="ctr2">45</td><td class="ctr1">39</td><td class="ctr2">132</td><td class="ctr1">8</td><td class="ctr2">41</td><td class="ctr1">0</td><td class="ctr2">7</td></tr></tfoot><tbody><tr><td id="a5"><a href="ProxiedKeyedObjectPool.html" class="el_class">ProxiedKeyedObjectPool</a></td><td class="bar" id="b0"><img src="../jacoco-resources/redbar.gif" width="48" height="10" title="48" alt="48"/><img src="../jacoco-resources/greenbar.gif" width="71" height="10" title="71" alt="71"/></td><td class="ctr2" id="c4">59%</td><td class="bar" id="d0"><img src="../jacoco-resources/redbar.gif" width="30" height="10" title="1" alt="1"/><img src="../jacoco-resources/greenbar.gif" width="30" height="10" title="1" alt="1"/></td><td class="ctr2" id="e1">50%</td><td class="ctr1" id="f0">5</td><td class="ctr2" id="g0">14</td><td
class="ctr1" id="h0">12</td><td class="ctr2" id="i0">35</td><td class="ctr1" id="j0">4</td><td class="ctr2" id="k0">13</td><td class="ctr1" id="l0">0</td><td class="ctr2" id="m0">1</td></tr><tr><td id="a0"><a href="BaseProxyHandler.html" class="el_class">BaseProxyHandler</a></td><td class="bar" id="b1"><img src="../jacoco-resources/redbar.gif" width="35" height="10" title="35" alt="35"/><img src="../jacoco-resources/greenbar.gif" width="46" height="10" title="46" alt="46"/></td><td class="ctr2" id="c6">56%</td><td class="bar" id="d2"><img src="../jacoco-resources/greenbar.gif" width="120" height="10" title="4" alt="4"/></td><td class="ctr2" id="e0">100%</td><td class="ctr1" id="f2">1</td><td class="ctr2" id="g2">8</td><td class="ctr1" id="h1">8</td><td class="ctr2" id="i2">24</td><td class="ctr1" id="j1">1</td><td class="ctr2" id="k2">6</td><td class="ctr1" id="l1">0</td><td class="ctr2" id="m1">1</td></tr><tr><td id="a4"><a href="JdkProxySource.html" class="el_class">JdkProxySourc
e</a></td><td class="bar" id="b2"><img src="../jacoco-resources/redbar.gif" width="30" height="10" title="30" alt="30"/><img src="../jacoco-resources/greenbar.gif" width="41" height="10" title="41" alt="41"/></td><td class="ctr2" id="c5">57%</td><td class="bar" id="d3"/><td class="ctr2" id="e3">n/a</td><td class="ctr1" id="f3">1</td><td class="ctr2" id="g3">4</td><td class="ctr1" id="h2">7</td><td class="ctr2" id="i3">18</td><td class="ctr1" id="j2">1</td><td class="ctr2" id="k3">4</td><td class="ctr1" id="l2">0</td><td class="ctr2" id="m2">1</td></tr><tr><td id="a6"><a href="ProxiedObjectPool.html" class="el_class">ProxiedObjectPool</a></td><td class="bar" id="b3"><img src="../jacoco-resources/redbar.gif" width="29" height="10" title="29" alt="29"/><img src="../jacoco-resources/greenbar.gif" width="71" height="10" title="71" alt="71"/></td><td class="ctr2" id="c2">71%</td><td class="bar" id="d1"><img src="../jacoco-resources/redbar.gif" width="30" height="10" title="1" alt="1"/><im
g src="../jacoco-resources/greenbar.gif" width="30" height="10" title="1" alt="1"/></td><td class="ctr2" id="e2">50%</td><td class="ctr1" id="f1">2</td><td class="ctr2" id="g1">11</td><td class="ctr1" id="h3">7</td><td class="ctr2" id="i1">31</td><td class="ctr1" id="j3">1</td><td class="ctr2" id="k1">10</td><td class="ctr1" id="l3">0</td><td class="ctr2" id="m3">1</td></tr><tr><td id="a2"><a href="CglibProxySource.html" class="el_class">CglibProxySource</a></td><td class="bar" id="b4"><img src="../jacoco-resources/redbar.gif" width="20" height="10" title="20" alt="20"/><img src="../jacoco-resources/greenbar.gif" width="39" height="10" title="39" alt="39"/></td><td class="ctr2" id="c3">66%</td><td class="bar" id="d4"/><td class="ctr2" id="e4">n/a</td><td class="ctr1" id="f4">1</td><td class="ctr2" id="g4">4</td><td class="ctr1" id="h4">5</td><td class="ctr2" id="i4">18</td><td class="ctr1" id="j4">1</td><td class="ctr2" id="k4">4</td><td class="ctr1" id="l4">0</td><td class="ctr2" i
d="m4">1</td></tr><tr><td id="a1"><a href="CglibProxyHandler.html" class="el_class">CglibProxyHandler</a></td><td class="bar" id="b5"><img src="../jacoco-resources/greenbar.gif" width="10" height="10" title="10" alt="10"/></td><td class="ctr2" id="c0">100%</td><td class="bar" id="d5"/><td class="ctr2" id="e5">n/a</td><td class="ctr1" id="f5">0</td><td class="ctr2" id="g5">2</td><td class="ctr1" id="h5">0</td><td class="ctr2" id="i5">3</td><td class="ctr1" id="j5">0</td><td class="ctr2" id="k5">2</td><td class="ctr1" id="l5">0</td><td class="ctr2" id="m5">1</td></tr><tr><td id="a3"><a href="JdkProxyHandler.html" class="el_class">JdkProxyHandler</a></td><td class="bar" id="b6"><img src="../jacoco-resources/greenbar.gif" width="10" height="10" title="10" alt="10"/></td><td class="ctr2" id="c1">100%</td><td class="bar" id="d6"/><td class="ctr2" id="e6">n/a</td><td class="ctr1" id="f6">0</td><td class="ctr2" id="g6">2</td><td class="ctr1" id="h6">0</td><td class="ctr2" id="i6">3</td><td
class="ctr1" id="j6">0</td><td class="ctr2" id="k6">2</td><td class="ctr1" id="l6">0</td><td class="ctr2" id="m6">1</td></tr></tbody></table><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.3.201901230119</span></div></body></html>
\ No newline at end of file
Added: websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2.proxy/index.source.html
==============================================================================
--- websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2.proxy/index.source.html (added)
+++ websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2.proxy/index.source.html Sat Aug 10 22:26:44 2019
@@ -0,0 +1 @@
+<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link rel="shortcut icon" href="../jacoco-resources/report.gif" type="image/gif"/><title>org.apache.commons.pool2.proxy</title><script type="text/javascript" src="../jacoco-resources/sort.js"></script></head><body onload="initialSort(['breadcrumb', 'coveragetable'])"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="index.html" class="el_class">Classes</a><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">Apache Commons Pool</a> > <span class="el_package">org.apache.commons.pool2.proxy</span></div><h1>org.apache.commons.pool2.proxy</h1><table class="covera
ge" cellspacing="0" id="coveragetable"><thead><tr><td class="sortable" id="a" onclick="toggleSort(this)">Element</td><td class="down sortable bar" id="b" onclick="toggleSort(this)">Missed Instructions</td><td class="sortable ctr2" id="c" onclick="toggleSort(this)">Cov.</td><td class="sortable bar" id="d" onclick="toggleSort(this)">Missed Branches</td><td class="sortable ctr2" id="e" onclick="toggleSort(this)">Cov.</td><td class="sortable ctr1" id="f" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="g" onclick="toggleSort(this)">Cxty</td><td class="sortable ctr1" id="h" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="i" onclick="toggleSort(this)">Lines</td><td class="sortable ctr1" id="j" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="k" onclick="toggleSort(this)">Methods</td><td class="sortable ctr1" id="l" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="m" onclick="toggleSort(this)">Classes</td></tr></t
head><tfoot><tr><td>Total</td><td class="bar">162 of 450</td><td class="ctr2">64%</td><td class="bar">2 of 8</td><td class="ctr2">75%</td><td class="ctr1">10</td><td class="ctr2">45</td><td class="ctr1">39</td><td class="ctr2">132</td><td class="ctr1">8</td><td class="ctr2">41</td><td class="ctr1">0</td><td class="ctr2">7</td></tr></tfoot><tbody><tr><td id="a5"><a href="ProxiedKeyedObjectPool.java.html" class="el_source">ProxiedKeyedObjectPool.java</a></td><td class="bar" id="b0"><img src="../jacoco-resources/redbar.gif" width="48" height="10" title="48" alt="48"/><img src="../jacoco-resources/greenbar.gif" width="71" height="10" title="71" alt="71"/></td><td class="ctr2" id="c4">59%</td><td class="bar" id="d0"><img src="../jacoco-resources/redbar.gif" width="30" height="10" title="1" alt="1"/><img src="../jacoco-resources/greenbar.gif" width="30" height="10" title="1" alt="1"/></td><td class="ctr2" id="e1">50%</td><td class="ctr1" id="f0">5</td><td class="ctr2" id="g0">14</td><td c
lass="ctr1" id="h0">12</td><td class="ctr2" id="i0">35</td><td class="ctr1" id="j0">4</td><td class="ctr2" id="k0">13</td><td class="ctr1" id="l0">0</td><td class="ctr2" id="m0">1</td></tr><tr><td id="a0"><a href="BaseProxyHandler.java.html" class="el_source">BaseProxyHandler.java</a></td><td class="bar" id="b1"><img src="../jacoco-resources/redbar.gif" width="35" height="10" title="35" alt="35"/><img src="../jacoco-resources/greenbar.gif" width="46" height="10" title="46" alt="46"/></td><td class="ctr2" id="c6">56%</td><td class="bar" id="d2"><img src="../jacoco-resources/greenbar.gif" width="120" height="10" title="4" alt="4"/></td><td class="ctr2" id="e0">100%</td><td class="ctr1" id="f2">1</td><td class="ctr2" id="g2">8</td><td class="ctr1" id="h1">8</td><td class="ctr2" id="i2">24</td><td class="ctr1" id="j1">1</td><td class="ctr2" id="k2">6</td><td class="ctr1" id="l1">0</td><td class="ctr2" id="m1">1</td></tr><tr><td id="a4"><a href="JdkProxySource.java.html" class="el_source
">JdkProxySource.java</a></td><td class="bar" id="b2"><img src="../jacoco-resources/redbar.gif" width="30" height="10" title="30" alt="30"/><img src="../jacoco-resources/greenbar.gif" width="41" height="10" title="41" alt="41"/></td><td class="ctr2" id="c5">57%</td><td class="bar" id="d3"/><td class="ctr2" id="e3">n/a</td><td class="ctr1" id="f3">1</td><td class="ctr2" id="g3">4</td><td class="ctr1" id="h2">7</td><td class="ctr2" id="i3">18</td><td class="ctr1" id="j2">1</td><td class="ctr2" id="k3">4</td><td class="ctr1" id="l2">0</td><td class="ctr2" id="m2">1</td></tr><tr><td id="a6"><a href="ProxiedObjectPool.java.html" class="el_source">ProxiedObjectPool.java</a></td><td class="bar" id="b3"><img src="../jacoco-resources/redbar.gif" width="29" height="10" title="29" alt="29"/><img src="../jacoco-resources/greenbar.gif" width="71" height="10" title="71" alt="71"/></td><td class="ctr2" id="c2">71%</td><td class="bar" id="d1"><img src="../jacoco-resources/redbar.gif" width="30" hei
ght="10" title="1" alt="1"/><img src="../jacoco-resources/greenbar.gif" width="30" height="10" title="1" alt="1"/></td><td class="ctr2" id="e2">50%</td><td class="ctr1" id="f1">2</td><td class="ctr2" id="g1">11</td><td class="ctr1" id="h3">7</td><td class="ctr2" id="i1">31</td><td class="ctr1" id="j3">1</td><td class="ctr2" id="k1">10</td><td class="ctr1" id="l3">0</td><td class="ctr2" id="m3">1</td></tr><tr><td id="a2"><a href="CglibProxySource.java.html" class="el_source">CglibProxySource.java</a></td><td class="bar" id="b4"><img src="../jacoco-resources/redbar.gif" width="20" height="10" title="20" alt="20"/><img src="../jacoco-resources/greenbar.gif" width="39" height="10" title="39" alt="39"/></td><td class="ctr2" id="c3">66%</td><td class="bar" id="d4"/><td class="ctr2" id="e4">n/a</td><td class="ctr1" id="f4">1</td><td class="ctr2" id="g4">4</td><td class="ctr1" id="h4">5</td><td class="ctr2" id="i4">18</td><td class="ctr1" id="j4">1</td><td class="ctr2" id="k4">4</td><td cla
ss="ctr1" id="l4">0</td><td class="ctr2" id="m4">1</td></tr><tr><td id="a1"><a href="CglibProxyHandler.java.html" class="el_source">CglibProxyHandler.java</a></td><td class="bar" id="b5"><img src="../jacoco-resources/greenbar.gif" width="10" height="10" title="10" alt="10"/></td><td class="ctr2" id="c0">100%</td><td class="bar" id="d5"/><td class="ctr2" id="e5">n/a</td><td class="ctr1" id="f5">0</td><td class="ctr2" id="g5">2</td><td class="ctr1" id="h5">0</td><td class="ctr2" id="i5">3</td><td class="ctr1" id="j5">0</td><td class="ctr2" id="k5">2</td><td class="ctr1" id="l5">0</td><td class="ctr2" id="m5">1</td></tr><tr><td id="a3"><a href="JdkProxyHandler.java.html" class="el_source">JdkProxyHandler.java</a></td><td class="bar" id="b6"><img src="../jacoco-resources/greenbar.gif" width="10" height="10" title="10" alt="10"/></td><td class="ctr2" id="c1">100%</td><td class="bar" id="d6"/><td class="ctr2" id="e6">n/a</td><td class="ctr1" id="f6">0</td><td class="ctr2" id="g6">2</td><t
d class="ctr1" id="h6">0</td><td class="ctr2" id="i6">3</td><td class="ctr1" id="j6">0</td><td class="ctr2" id="k6">2</td><td class="ctr1" id="l6">0</td><td class="ctr2" id="m6">1</td></tr></tbody></table><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.3.201901230119</span></div></body></html>
\ No newline at end of file
Added: websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2/BaseKeyedPooledObjectFactory.html
==============================================================================
--- websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2/BaseKeyedPooledObjectFactory.html (added)
+++ websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2/BaseKeyedPooledObjectFactory.html Sat Aug 10 22:26:44 2019
@@ -0,0 +1 @@
+<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link rel="shortcut icon" href="../jacoco-resources/report.gif" type="image/gif"/><title>BaseKeyedPooledObjectFactory</title><script type="text/javascript" src="../jacoco-resources/sort.js"></script></head><body onload="initialSort(['breadcrumb'])"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">Apache Commons Pool</a> > <a href="index.html" class="el_package">org.apache.commons.pool2</a> > <span class="el_class">BaseKeyedPooledObjectFactory</span></div><h1>BaseKeyedPooledObjectFactory</h1><table class="covera
ge" cellspacing="0" id="coveragetable"><thead><tr><td class="sortable" id="a" onclick="toggleSort(this)">Element</td><td class="down sortable bar" id="b" onclick="toggleSort(this)">Missed Instructions</td><td class="sortable ctr2" id="c" onclick="toggleSort(this)">Cov.</td><td class="sortable bar" id="d" onclick="toggleSort(this)">Missed Branches</td><td class="sortable ctr2" id="e" onclick="toggleSort(this)">Cov.</td><td class="sortable ctr1" id="f" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="g" onclick="toggleSort(this)">Cxty</td><td class="sortable ctr1" id="h" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="i" onclick="toggleSort(this)">Lines</td><td class="sortable ctr1" id="j" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="k" onclick="toggleSort(this)">Methods</td></tr></thead><tfoot><tr><td>Total</td><td class="bar">0 of 14</td><td class="ctr2">100%</td><td class="bar">0 of 0</td><td class="ctr2">n/a</td><td cla
ss="ctr1">0</td><td class="ctr2">6</td><td class="ctr1">0</td><td class="ctr2">6</td><td class="ctr1">0</td><td class="ctr2">6</td></tr></tfoot><tbody><tr><td id="a3"><a href="BaseKeyedPooledObjectFactory.java.html#L60" class="el_method">makeObject(Object)</a></td><td class="bar" id="b0"><img src="../jacoco-resources/greenbar.gif" width="120" height="10" title="6" alt="6"/></td><td class="ctr2" id="c0">100%</td><td class="bar" id="d0"/><td class="ctr2" id="e0">n/a</td><td class="ctr1" id="f0">0</td><td class="ctr2" id="g0">1</td><td class="ctr1" id="h0">0</td><td class="ctr2" id="i0">1</td><td class="ctr1" id="j0">0</td><td class="ctr2" id="k0">1</td></tr><tr><td id="a1"><a href="BaseKeyedPooledObjectFactory.java.html#L33" class="el_method">BaseKeyedPooledObjectFactory()</a></td><td class="bar" id="b1"><img src="../jacoco-resources/greenbar.gif" width="60" height="10" title="3" alt="3"/></td><td class="ctr2" id="c1">100%</td><td class="bar" id="d1"/><td class="ctr2" id="e1">n/a</td>
<td class="ctr1" id="f1">0</td><td class="ctr2" id="g1">1</td><td class="ctr1" id="h1">0</td><td class="ctr2" id="i1">1</td><td class="ctr1" id="j1">0</td><td class="ctr2" id="k1">1</td></tr><tr><td id="a5"><a href="BaseKeyedPooledObjectFactory.java.html#L90" class="el_method">validateObject(Object, PooledObject)</a></td><td class="bar" id="b2"><img src="../jacoco-resources/greenbar.gif" width="40" height="10" title="2" alt="2"/></td><td class="ctr2" id="c2">100%</td><td class="bar" id="d2"/><td class="ctr2" id="e2">n/a</td><td class="ctr1" id="f2">0</td><td class="ctr2" id="g2">1</td><td class="ctr1" id="h2">0</td><td class="ctr2" id="i2">1</td><td class="ctr1" id="j2">0</td><td class="ctr2" id="k2">1</td></tr><tr><td id="a2"><a href="BaseKeyedPooledObjectFactory.java.html#L76" class="el_method">destroyObject(Object, PooledObject)</a></td><td class="bar" id="b3"><img src="../jacoco-resources/greenbar.gif" width="20" height="10" title="1" alt="1"/></td><td class="ctr2" id="c3">100%<
/td><td class="bar" id="d3"/><td class="ctr2" id="e3">n/a</td><td class="ctr1" id="f3">0</td><td class="ctr2" id="g3">1</td><td class="ctr1" id="h3">0</td><td class="ctr2" id="i3">1</td><td class="ctr1" id="j3">0</td><td class="ctr2" id="k3">1</td></tr><tr><td id="a0"><a href="BaseKeyedPooledObjectFactory.java.html#L106" class="el_method">activateObject(Object, PooledObject)</a></td><td class="bar" id="b4"><img src="../jacoco-resources/greenbar.gif" width="20" height="10" title="1" alt="1"/></td><td class="ctr2" id="c4">100%</td><td class="bar" id="d4"/><td class="ctr2" id="e4">n/a</td><td class="ctr1" id="f4">0</td><td class="ctr2" id="g4">1</td><td class="ctr1" id="h4">0</td><td class="ctr2" id="i4">1</td><td class="ctr1" id="j4">0</td><td class="ctr2" id="k4">1</td></tr><tr><td id="a4"><a href="BaseKeyedPooledObjectFactory.java.html#L121" class="el_method">passivateObject(Object, PooledObject)</a></td><td class="bar" id="b5"><img src="../jacoco-resources/greenbar.gif" width="20"
height="10" title="1" alt="1"/></td><td class="ctr2" id="c5">100%</td><td class="bar" id="d5"/><td class="ctr2" id="e5">n/a</td><td class="ctr1" id="f5">0</td><td class="ctr2" id="g5">1</td><td class="ctr1" id="h5">0</td><td class="ctr2" id="i5">1</td><td class="ctr1" id="j5">0</td><td class="ctr2" id="k5">1</td></tr></tbody></table><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.3.201901230119</span></div></body></html>
\ No newline at end of file
Added: websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2/BaseKeyedPooledObjectFactory.java.html
==============================================================================
--- websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2/BaseKeyedPooledObjectFactory.java.html (added)
+++ websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2/BaseKeyedPooledObjectFactory.java.html Sat Aug 10 22:26:44 2019
@@ -0,0 +1,123 @@
+<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link rel="shortcut icon" href="../jacoco-resources/report.gif" type="image/gif"/><title>BaseKeyedPooledObjectFactory.java</title><link rel="stylesheet" href="../jacoco-resources/prettify.css" type="text/css"/><script type="text/javascript" src="../jacoco-resources/prettify.js"></script></head><body onload="window['PR_TAB_WIDTH']=4;prettyPrint()"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">Apache Commons Pool</a> > <a href="index.source.html" class="el_package">org.apache.commons.pool2</a> > <span class="e
l_source">BaseKeyedPooledObjectFactory.java</span></div><h1>BaseKeyedPooledObjectFactory.java</h1><pre class="source lang-java linenums">/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.commons.pool2;
+
+/**
+ * A base implementation of <code>KeyedPooledObjectFactory</code>.
+ * <p>
+ * All operations defined here are essentially no-op's.
+ * </p>
+ * This class is immutable, and therefore thread-safe.
+ *
+ * @see KeyedPooledObjectFactory
+ *
+ * @param <K> The type of keys managed by this factory.
+ * @param <V> Type of element managed by this factory.
+ *
+ * @since 2.0
+ */
+<span class="fc" id="L33">public abstract class BaseKeyedPooledObjectFactory<K, V> extends BaseObject</span>
+ implements KeyedPooledObjectFactory<K, V> {
+
+ /**
+ * Create an instance that can be served by the pool.
+ *
+ * @param key the key used when constructing the object
+ * @return an instance that can be served by the pool
+ *
+ * @throws Exception if there is a problem creating a new instance,
+ * this will be propagated to the code requesting an object.
+ */
+ public abstract V create(K key)
+ throws Exception;
+
+ /**
+ * Wrap the provided instance with an implementation of
+ * {@link PooledObject}.
+ *
+ * @param value the instance to wrap
+ *
+ * @return The provided instance, wrapped by a {@link PooledObject}
+ */
+ public abstract PooledObject<V> wrap(V value);
+
+ @Override
+ public PooledObject<V> makeObject(final K key) throws Exception {
+<span class="fc" id="L60"> return wrap(create(key));</span>
+ }
+
+ /**
+ * Destroy an instance no longer needed by the pool.
+ * <p>
+ * The default implementation is a no-op.
+ * </p>
+ *
+ * @param key the key used when selecting the instance
+ * @param p a {@code PooledObject} wrapping the instance to be destroyed
+ */
+ @Override
+ public void destroyObject(final K key, final PooledObject<V> p)
+ throws Exception {
+ // The default implementation is a no-op.
+<span class="fc" id="L76"> }</span>
+
+ /**
+ * Ensures that the instance is safe to be returned by the pool.
+ * <p>
+ * The default implementation always returns {@code true}.
+ * </p>
+ *
+ * @param key the key used when selecting the object
+ * @param p a {@code PooledObject} wrapping the instance to be validated
+ * @return always <code>true</code> in the default implementation
+ */
+ @Override
+ public boolean validateObject(final K key, final PooledObject<V> p) {
+<span class="fc" id="L90"> return true;</span>
+ }
+
+ /**
+ * Reinitialize an instance to be returned by the pool.
+ * <p>
+ * The default implementation is a no-op.
+ * </p>
+ *
+ * @param key the key used when selecting the object
+ * @param p a {@code PooledObject} wrapping the instance to be activated
+ */
+ @Override
+ public void activateObject(final K key, final PooledObject<V> p)
+ throws Exception {
+ // The default implementation is a no-op.
+<span class="fc" id="L106"> }</span>
+
+ /**
+ * Uninitialize an instance to be returned to the idle object pool.
+ * <p>
+ * The default implementation is a no-op.
+ * </p>
+ *
+ * @param key the key used when selecting the object
+ * @param p a {@code PooledObject} wrapping the instance to be passivated
+ */
+ @Override
+ public void passivateObject(final K key, final PooledObject<V> p)
+ throws Exception {
+ // The default implementation is a no-op.
+<span class="fc" id="L121"> }</span>
+}
+</pre><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.3.201901230119</span></div></body></html>
\ No newline at end of file
Added: websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2/BaseObject.html
==============================================================================
--- websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2/BaseObject.html (added)
+++ websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2/BaseObject.html Sat Aug 10 22:26:44 2019
@@ -0,0 +1 @@
+<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link rel="shortcut icon" href="../jacoco-resources/report.gif" type="image/gif"/><title>BaseObject</title><script type="text/javascript" src="../jacoco-resources/sort.js"></script></head><body onload="initialSort(['breadcrumb'])"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">Apache Commons Pool</a> > <a href="index.html" class="el_package">org.apache.commons.pool2</a> > <span class="el_class">BaseObject</span></div><h1>BaseObject</h1><table class="coverage" cellspacing="0" id="coveragetable"><thead><tr><td
class="sortable" id="a" onclick="toggleSort(this)">Element</td><td class="down sortable bar" id="b" onclick="toggleSort(this)">Missed Instructions</td><td class="sortable ctr2" id="c" onclick="toggleSort(this)">Cov.</td><td class="sortable bar" id="d" onclick="toggleSort(this)">Missed Branches</td><td class="sortable ctr2" id="e" onclick="toggleSort(this)">Cov.</td><td class="sortable ctr1" id="f" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="g" onclick="toggleSort(this)">Cxty</td><td class="sortable ctr1" id="h" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="i" onclick="toggleSort(this)">Lines</td><td class="sortable ctr1" id="j" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="k" onclick="toggleSort(this)">Methods</td></tr></thead><tfoot><tr><td>Total</td><td class="bar">1 of 28</td><td class="ctr2">96%</td><td class="bar">0 of 0</td><td class="ctr2">n/a</td><td class="ctr1">1</td><td class="ctr2">3</td><td class="ctr1"
>1</td><td class="ctr2">8</td><td class="ctr1">1</td><td class="ctr2">3</td></tr></tfoot><tbody><tr><td id="a2"><a href="BaseObject.java.html#L44" class="el_method">toStringAppendFields(StringBuilder)</a></td><td class="bar" id="b0"><img src="../jacoco-resources/redbar.gif" width="5" height="10" title="1" alt="1"/></td><td class="ctr2" id="c2">0%</td><td class="bar" id="d0"/><td class="ctr2" id="e0">n/a</td><td class="ctr1" id="f0">1</td><td class="ctr2" id="g0">1</td><td class="ctr1" id="h0">1</td><td class="ctr2" id="i1">1</td><td class="ctr1" id="j0">1</td><td class="ctr2" id="k0">1</td></tr><tr><td id="a1"><a href="BaseObject.java.html#L28" class="el_method">toString()</a></td><td class="bar" id="b1"><img src="../jacoco-resources/greenbar.gif" width="120" height="10" title="24" alt="24"/></td><td class="ctr2" id="c0">100%</td><td class="bar" id="d1"/><td class="ctr2" id="e1">n/a</td><td class="ctr1" id="f1">0</td><td class="ctr2" id="g1">1</td><td class="ctr1" id="h1">0</td><td
class="ctr2" id="i0">6</td><td class="ctr1" id="j1">0</td><td class="ctr2" id="k1">1</td></tr><tr><td id="a0"><a href="BaseObject.java.html#L24" class="el_method">BaseObject()</a></td><td class="bar" id="b2"><img src="../jacoco-resources/greenbar.gif" width="15" height="10" title="3" alt="3"/></td><td class="ctr2" id="c1">100%</td><td class="bar" id="d2"/><td class="ctr2" id="e2">n/a</td><td class="ctr1" id="f2">0</td><td class="ctr2" id="g2">1</td><td class="ctr1" id="h2">0</td><td class="ctr2" id="i2">1</td><td class="ctr1" id="j2">0</td><td class="ctr2" id="k2">1</td></tr></tbody></table><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.3.201901230119</span></div></body></html>
\ No newline at end of file
Added: websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2/BaseObject.java.html
==============================================================================
--- websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2/BaseObject.java.html (added)
+++ websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2/BaseObject.java.html Sat Aug 10 22:26:44 2019
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link rel="shortcut icon" href="../jacoco-resources/report.gif" type="image/gif"/><title>BaseObject.java</title><link rel="stylesheet" href="../jacoco-resources/prettify.css" type="text/css"/><script type="text/javascript" src="../jacoco-resources/prettify.js"></script></head><body onload="window['PR_TAB_WIDTH']=4;prettyPrint()"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">Apache Commons Pool</a> > <a href="index.source.html" class="el_package">org.apache.commons.pool2</a> > <span class="el_source">BaseObje
ct.java</span></div><h1>BaseObject.java</h1><pre class="source lang-java linenums">/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.commons.pool2;
+
+/**
+ * A base class for common functionality.
+ *
+ * @since 2.4.3
+ */
+<span class="fc" id="L24">public abstract class BaseObject {</span>
+
+ @Override
+ public String toString() {
+<span class="fc" id="L28"> final StringBuilder builder = new StringBuilder();</span>
+<span class="fc" id="L29"> builder.append(getClass().getSimpleName());</span>
+<span class="fc" id="L30"> builder.append(" [");</span>
+<span class="fc" id="L31"> toStringAppendFields(builder);</span>
+<span class="fc" id="L32"> builder.append("]");</span>
+<span class="fc" id="L33"> return builder.toString();</span>
+ }
+
+ /**
+ * Used by sub-classes to include the fields defined by the sub-class in the
+ * {@link #toString()} output.
+ *
+ * @param builder Field names and values are appended to this object
+ */
+ protected void toStringAppendFields(final StringBuilder builder) {
+ // do nothing by default, needed for b/w compatibility.
+<span class="nc" id="L44"> }</span>
+}
+</pre><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.3.201901230119</span></div></body></html>
\ No newline at end of file
Added: websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2/BaseObjectPool.html
==============================================================================
--- websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2/BaseObjectPool.html (added)
+++ websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2/BaseObjectPool.html Sat Aug 10 22:26:44 2019
@@ -0,0 +1 @@
+<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link rel="shortcut icon" href="../jacoco-resources/report.gif" type="image/gif"/><title>BaseObjectPool</title><script type="text/javascript" src="../jacoco-resources/sort.js"></script></head><body onload="initialSort(['breadcrumb'])"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">Apache Commons Pool</a> > <a href="index.html" class="el_package">org.apache.commons.pool2</a> > <span class="el_class">BaseObjectPool</span></div><h1>BaseObjectPool</h1><table class="coverage" cellspacing="0" id="coveragetable"><th
ead><tr><td class="sortable" id="a" onclick="toggleSort(this)">Element</td><td class="down sortable bar" id="b" onclick="toggleSort(this)">Missed Instructions</td><td class="sortable ctr2" id="c" onclick="toggleSort(this)">Cov.</td><td class="sortable bar" id="d" onclick="toggleSort(this)">Missed Branches</td><td class="sortable ctr2" id="e" onclick="toggleSort(this)">Cov.</td><td class="sortable ctr1" id="f" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="g" onclick="toggleSort(this)">Cxty</td><td class="sortable ctr1" id="h" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="i" onclick="toggleSort(this)">Lines</td><td class="sortable ctr1" id="j" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="k" onclick="toggleSort(this)">Methods</td></tr></thead><tfoot><tr><td>Total</td><td class="bar">0 of 44</td><td class="ctr2">100%</td><td class="bar">0 of 2</td><td class="ctr2">100%</td><td class="ctr1">0</td><td class="ctr2">10</td><
td class="ctr1">0</td><td class="ctr2">15</td><td class="ctr1">0</td><td class="ctr2">9</td></tr></tfoot><tbody><tr><td id="a8"><a href="BaseObjectPool.java.html#L123" class="el_method">toStringAppendFields(StringBuilder)</a></td><td class="bar" id="b0"><img src="../jacoco-resources/greenbar.gif" width="120" height="10" title="10" alt="10"/></td><td class="ctr2" id="c0">100%</td><td class="bar" id="d1"/><td class="ctr2" id="e1">n/a</td><td class="ctr1" id="f0">0</td><td class="ctr2" id="g1">1</td><td class="ctr1" id="h0">0</td><td class="ctr2" id="i0">3</td><td class="ctr1" id="j0">0</td><td class="ctr2" id="k0">1</td></tr><tr><td id="a1"><a href="BaseObjectPool.java.html#L114" class="el_method">assertOpen()</a></td><td class="bar" id="b1"><img src="../jacoco-resources/greenbar.gif" width="108" height="10" title="9" alt="9"/></td><td class="ctr2" id="c1">100%</td><td class="bar" id="d0"><img src="../jacoco-resources/greenbar.gif" width="120" height="10" title="2" alt="2"/></td><td c
lass="ctr2" id="e0">100%</td><td class="ctr1" id="f1">0</td><td class="ctr2" id="g0">2</td><td class="ctr1" id="h1">0</td><td class="ctr2" id="i1">3</td><td class="ctr1" id="j1">0</td><td class="ctr2" id="k1">1</td></tr><tr><td id="a2"><a href="BaseObjectPool.java.html#L30" class="el_method">BaseObjectPool()</a></td><td class="bar" id="b2"><img src="../jacoco-resources/greenbar.gif" width="72" height="10" title="6" alt="6"/></td><td class="ctr2" id="c2">100%</td><td class="bar" id="d2"/><td class="ctr2" id="e2">n/a</td><td class="ctr1" id="f2">0</td><td class="ctr2" id="g2">1</td><td class="ctr1" id="h2">0</td><td class="ctr2" id="i2">2</td><td class="ctr1" id="j2">0</td><td class="ctr2" id="k2">1</td></tr><tr><td id="a3"><a href="BaseObjectPool.java.html#L69" class="el_method">clear()</a></td><td class="bar" id="b3"><img src="../jacoco-resources/greenbar.gif" width="48" height="10" title="4" alt="4"/></td><td class="ctr2" id="c3">100%</td><td class="bar" id="d3"/><td class="ctr2" i
d="e3">n/a</td><td class="ctr1" id="f3">0</td><td class="ctr2" id="g3">1</td><td class="ctr1" id="h3">0</td><td class="ctr2" id="i4">1</td><td class="ctr1" id="j3">0</td><td class="ctr2" id="k3">1</td></tr><tr><td id="a0"><a href="BaseObjectPool.java.html#L81" class="el_method">addObject()</a></td><td class="bar" id="b4"><img src="../jacoco-resources/greenbar.gif" width="48" height="10" title="4" alt="4"/></td><td class="ctr2" id="c4">100%</td><td class="bar" id="d4"/><td class="ctr2" id="e4">n/a</td><td class="ctr1" id="f4">0</td><td class="ctr2" id="g4">1</td><td class="ctr1" id="h4">0</td><td class="ctr2" id="i5">1</td><td class="ctr1" id="j4">0</td><td class="ctr2" id="k4">1</td></tr><tr><td id="a4"><a href="BaseObjectPool.java.html#L93" class="el_method">close()</a></td><td class="bar" id="b5"><img src="../jacoco-resources/greenbar.gif" width="48" height="10" title="4" alt="4"/></td><td class="ctr2" id="c5">100%</td><td class="bar" id="d5"/><td class="ctr2" id="e5">n/a</td><td
class="ctr1" id="f5">0</td><td class="ctr2" id="g5">1</td><td class="ctr1" id="h5">0</td><td class="ctr2" id="i3">2</td><td class="ctr1" id="j5">0</td><td class="ctr2" id="k5">1</td></tr><tr><td id="a7"><a href="BaseObjectPool.java.html#L102" class="el_method">isClosed()</a></td><td class="bar" id="b6"><img src="../jacoco-resources/greenbar.gif" width="36" height="10" title="3" alt="3"/></td><td class="ctr2" id="c6">100%</td><td class="bar" id="d6"/><td class="ctr2" id="e6">n/a</td><td class="ctr1" id="f6">0</td><td class="ctr2" id="g6">1</td><td class="ctr1" id="h6">0</td><td class="ctr2" id="i6">1</td><td class="ctr1" id="j6">0</td><td class="ctr2" id="k6">1</td></tr><tr><td id="a6"><a href="BaseObjectPool.java.html#L48" class="el_method">getNumIdle()</a></td><td class="bar" id="b7"><img src="../jacoco-resources/greenbar.gif" width="24" height="10" title="2" alt="2"/></td><td class="ctr2" id="c7">100%</td><td class="bar" id="d7"/><td class="ctr2" id="e7">n/a</td><td class="ctr1" i
d="f7">0</td><td class="ctr2" id="g7">1</td><td class="ctr1" id="h7">0</td><td class="ctr2" id="i7">1</td><td class="ctr1" id="j7">0</td><td class="ctr2" id="k7">1</td></tr><tr><td id="a5"><a href="BaseObjectPool.java.html#L58" class="el_method">getNumActive()</a></td><td class="bar" id="b8"><img src="../jacoco-resources/greenbar.gif" width="24" height="10" title="2" alt="2"/></td><td class="ctr2" id="c8">100%</td><td class="bar" id="d8"/><td class="ctr2" id="e8">n/a</td><td class="ctr1" id="f8">0</td><td class="ctr2" id="g8">1</td><td class="ctr1" id="h8">0</td><td class="ctr2" id="i8">1</td><td class="ctr1" id="j8">0</td><td class="ctr2" id="k8">1</td></tr></tbody></table><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.3.201901230119</span></div></body></html>
\ No newline at end of file
Added: websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2/BaseObjectPool.java.html
==============================================================================
--- websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2/BaseObjectPool.java.html (added)
+++ websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2/BaseObjectPool.java.html Sat Aug 10 22:26:44 2019
@@ -0,0 +1,127 @@
+<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link rel="shortcut icon" href="../jacoco-resources/report.gif" type="image/gif"/><title>BaseObjectPool.java</title><link rel="stylesheet" href="../jacoco-resources/prettify.css" type="text/css"/><script type="text/javascript" src="../jacoco-resources/prettify.js"></script></head><body onload="window['PR_TAB_WIDTH']=4;prettyPrint()"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">Apache Commons Pool</a> > <a href="index.source.html" class="el_package">org.apache.commons.pool2</a> > <span class="el_source">Base
ObjectPool.java</span></div><h1>BaseObjectPool.java</h1><pre class="source lang-java linenums">/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.commons.pool2;
+
+/**
+ * A simple base implementation of {@link ObjectPool}.
+ * Optional operations are implemented to either do nothing, return a value
+ * indicating it is unsupported or throw {@link UnsupportedOperationException}.
+ * <p>
+ * This class is intended to be thread-safe.
+ *
+ * @param <T> Type of element pooled in this pool.
+ *
+ * @since 2.0
+ */
+<span class="fc" id="L30">public abstract class BaseObjectPool<T> extends BaseObject implements ObjectPool<T> {</span>
+
+ @Override
+ public abstract T borrowObject() throws Exception;
+
+ @Override
+ public abstract void returnObject(T obj) throws Exception;
+
+ @Override
+ public abstract void invalidateObject(T obj) throws Exception;
+
+ /**
+ * Not supported in this base implementation.
+ *
+ * @return a negative value.
+ */
+ @Override
+ public int getNumIdle() {
+<span class="fc" id="L48"> return -1;</span>
+ }
+
+ /**
+ * Not supported in this base implementation.
+ *
+ * @return a negative value.
+ */
+ @Override
+ public int getNumActive() {
+<span class="fc" id="L58"> return -1;</span>
+ }
+
+ /**
+ * Not supported in this base implementation.
+ *
+ * @throws UnsupportedOperationException if the pool does not implement this
+ * method
+ */
+ @Override
+ public void clear() throws Exception, UnsupportedOperationException {
+<span class="fc" id="L69"> throw new UnsupportedOperationException();</span>
+ }
+
+ /**
+ * Not supported in this base implementation. Subclasses should override
+ * this behavior.
+ *
+ * @throws UnsupportedOperationException if the pool does not implement this
+ * method
+ */
+ @Override
+ public void addObject() throws Exception, UnsupportedOperationException {
+<span class="fc" id="L81"> throw new UnsupportedOperationException();</span>
+ }
+
+ /**
+ * {@inheritDoc}
+ * <p>
+ * This affects the behavior of <code>isClosed</code> and
+ * <code>assertOpen</code>.
+ * </p>
+ */
+ @Override
+ public void close() {
+<span class="fc" id="L93"> closed = true;</span>
+<span class="fc" id="L94"> }</span>
+
+ /**
+ * Has this pool instance been closed.
+ *
+ * @return <code>true</code> when this pool has been closed.
+ */
+ public final boolean isClosed() {
+<span class="fc" id="L102"> return closed;</span>
+ }
+
+ /**
+ * Throws an <code>IllegalStateException</code> when this pool has been
+ * closed.
+ *
+ * @throws IllegalStateException when this pool has been closed.
+ *
+ * @see #isClosed()
+ */
+ protected final void assertOpen() throws IllegalStateException {
+<span class="fc bfc" id="L114" title="All 2 branches covered."> if (isClosed()) {</span>
+<span class="fc" id="L115"> throw new IllegalStateException("Pool not open");</span>
+ }
+<span class="fc" id="L117"> }</span>
+
+<span class="fc" id="L119"> private volatile boolean closed = false;</span>
+
+ @Override
+ protected void toStringAppendFields(final StringBuilder builder) {
+<span class="fc" id="L123"> builder.append("closed=");</span>
+<span class="fc" id="L124"> builder.append(closed);</span>
+<span class="fc" id="L125"> }</span>
+}
+</pre><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.3.201901230119</span></div></body></html>
\ No newline at end of file