Apache Commons logo Commons DBCP

Metric Results

[ summary ] [ packages ] [ cycles ] [ explanations ]

The following document contains the results of a JDepend metric analysis. The various metrics are defined at the bottom of this document.

Summary

[ summary ] [ packages ] [ cycles ] [ explanations ]

Package TC CC AC Ca Ce A I D V
org.apache.commons.dbcp2 31 28 3 3 21 10.0% 88.0% 3.0% 1
org.apache.commons.dbcp2.cpdsadapter 4 4 0 0 11 0.0% 100.0% 0.0% 1
org.apache.commons.dbcp2.datasources 12 9 3 0 14 25.0% 100.0% 25.0% 1
org.apache.commons.dbcp2.managed 15 13 2 0 12 13.0% 100.0% 13.0% 1

Packages

[ summary ] [ packages ] [ cycles ] [ explanations ]

org.apache.commons.dbcp2

Afferent Couplings Efferent Couplings Abstractness Instability Distance
3 21 10.0% 88.0% 3.0%
Abstract Classes Concrete Classes Used by Packages Uses Packages
org.apache.commons.dbcp2.BasicDataSourceMXBean
org.apache.commons.dbcp2.ConnectionFactory
org.apache.commons.dbcp2.PoolableConnectionMXBean
org.apache.commons.dbcp2.AbandonedTrace
org.apache.commons.dbcp2.BasicDataSource
org.apache.commons.dbcp2.BasicDataSource$1
org.apache.commons.dbcp2.BasicDataSource$PaGetConnection
org.apache.commons.dbcp2.BasicDataSourceFactory
org.apache.commons.dbcp2.Constants
org.apache.commons.dbcp2.DataSourceConnectionFactory
org.apache.commons.dbcp2.DelegatingCallableStatement
org.apache.commons.dbcp2.DelegatingConnection
org.apache.commons.dbcp2.DelegatingDatabaseMetaData
org.apache.commons.dbcp2.DelegatingPreparedStatement
org.apache.commons.dbcp2.DelegatingResultSet
org.apache.commons.dbcp2.DelegatingStatement
org.apache.commons.dbcp2.DriverConnectionFactory
org.apache.commons.dbcp2.DriverManagerConnectionFactory
org.apache.commons.dbcp2.PStmtKey
org.apache.commons.dbcp2.PoolableCallableStatement
org.apache.commons.dbcp2.PoolableConnection
org.apache.commons.dbcp2.PoolableConnectionFactory
org.apache.commons.dbcp2.PoolablePreparedStatement
org.apache.commons.dbcp2.PoolingConnection
org.apache.commons.dbcp2.PoolingConnection$StatementType
org.apache.commons.dbcp2.PoolingDataSource
org.apache.commons.dbcp2.PoolingDataSource$PoolGuardConnectionWrapper
org.apache.commons.dbcp2.PoolingDriver
org.apache.commons.dbcp2.PoolingDriver$PoolGuardConnectionWrapper
org.apache.commons.dbcp2.SwallowedExceptionLogger
org.apache.commons.dbcp2.Utils
org.apache.commons.dbcp2.cpdsadapter
org.apache.commons.dbcp2.datasources
org.apache.commons.dbcp2.managed
java.io
java.lang
java.lang.management
java.lang.ref
java.math
java.net
java.nio.charset
java.security
java.sql
java.text
java.util
java.util.concurrent
java.util.concurrent.atomic
java.util.logging
javax.management
javax.naming
javax.naming.spi
javax.sql
org.apache.commons.logging
org.apache.commons.pool2
org.apache.commons.pool2.impl

org.apache.commons.dbcp2.cpdsadapter

Afferent Couplings Efferent Couplings Abstractness Instability Distance
0 11 0.0% 100.0% 0.0%
Abstract Classes Concrete Classes Used by Packages Uses Packages
None org.apache.commons.dbcp2.cpdsadapter.ConnectionImpl
org.apache.commons.dbcp2.cpdsadapter.DriverAdapterCPDS
org.apache.commons.dbcp2.cpdsadapter.PStmtKeyCPDS
org.apache.commons.dbcp2.cpdsadapter.PooledConnectionImpl
None java.io
java.lang
java.sql
java.util
java.util.logging
javax.naming
javax.naming.spi
javax.sql
org.apache.commons.dbcp2
org.apache.commons.pool2
org.apache.commons.pool2.impl

org.apache.commons.dbcp2.datasources

Afferent Couplings Efferent Couplings Abstractness Instability Distance
0 14 25.0% 100.0% 25.0%
Abstract Classes Concrete Classes Used by Packages Uses Packages
org.apache.commons.dbcp2.datasources.InstanceKeyDataSource
org.apache.commons.dbcp2.datasources.InstanceKeyDataSourceFactory
org.apache.commons.dbcp2.datasources.PooledConnectionManager
org.apache.commons.dbcp2.datasources.CPDSConnectionFactory
org.apache.commons.dbcp2.datasources.KeyedCPDSConnectionFactory
org.apache.commons.dbcp2.datasources.PerUserPoolDataSource
org.apache.commons.dbcp2.datasources.PerUserPoolDataSourceFactory
org.apache.commons.dbcp2.datasources.PoolKey
org.apache.commons.dbcp2.datasources.PooledConnectionAndInfo
org.apache.commons.dbcp2.datasources.SharedPoolDataSource
org.apache.commons.dbcp2.datasources.SharedPoolDataSourceFactory
org.apache.commons.dbcp2.datasources.UserPassKey
None java.io
java.lang
java.nio.charset
java.sql
java.util
java.util.concurrent
java.util.logging
javax.naming
javax.naming.spi
javax.sql
org.apache.commons.dbcp2
org.apache.commons.logging
org.apache.commons.pool2
org.apache.commons.pool2.impl

org.apache.commons.dbcp2.managed

Afferent Couplings Efferent Couplings Abstractness Instability Distance
0 12 13.0% 100.0% 13.0%
Abstract Classes Concrete Classes Used by Packages Uses Packages
org.apache.commons.dbcp2.managed.TransactionContextListener
org.apache.commons.dbcp2.managed.XAConnectionFactory
org.apache.commons.dbcp2.managed.BasicManagedDataSource
org.apache.commons.dbcp2.managed.DataSourceXAConnectionFactory
org.apache.commons.dbcp2.managed.DataSourceXAConnectionFactory$1
org.apache.commons.dbcp2.managed.LocalXAConnectionFactory
org.apache.commons.dbcp2.managed.LocalXAConnectionFactory$LocalXAResource
org.apache.commons.dbcp2.managed.ManagedConnection
org.apache.commons.dbcp2.managed.ManagedConnection$CompletionListener
org.apache.commons.dbcp2.managed.ManagedDataSource
org.apache.commons.dbcp2.managed.PoolableManagedConnection
org.apache.commons.dbcp2.managed.PoolableManagedConnectionFactory
org.apache.commons.dbcp2.managed.TransactionContext
org.apache.commons.dbcp2.managed.TransactionContext$1
org.apache.commons.dbcp2.managed.TransactionRegistry
None java.io
java.lang
java.lang.ref
java.sql
java.util
javax.management
javax.sql
javax.transaction
javax.transaction.xa
org.apache.commons.dbcp2
org.apache.commons.pool2
org.apache.commons.pool2.impl

Cycles

[ summary ] [ packages ] [ cycles ] [ explanations ]

There are no cyclic dependencies.

Explanation

[ summary ] [ packages ] [ cycles ] [ explanations ]

The following explanations are for quick reference and are lifted directly from the original JDepend documentation.

Term Description
Number of Classes The number of concrete and abstract classes (and interfaces) in the package is an indicator of the extensibility of the package.
Afferent Couplings The number of other packages that depend upon classes within the package is an indicator of the package's responsibility.
Efferent Couplings The number of other packages that the classes in the package depend upon is an indicator of the package's independence.
Abstractness The ratio of the number of abstract classes (and interfaces) in the analyzed package to the total number of classes in the analyzed package. The range for this metric is 0 to 1, with A=0 indicating a completely concrete package and A=1 indicating a completely abstract package.
Instability The ratio of efferent coupling (Ce) to total coupling (Ce / (Ce + Ca)). This metric is an indicator of the package's resilience to change. The range for this metric is 0 to 1, with I=0 indicating a completely stable package and I=1 indicating a completely instable package.
Distance The perpendicular distance of a package from the idealized line A + I = 1. This metric is an indicator of the package's balance between abstractness and stability. A package squarely on the main sequence is optimally balanced with respect to its abstractness and stability. Ideal packages are either completely abstract and stable (x=0, y=1) or completely concrete and instable (x=1, y=0). The range for this metric is 0 to 1, with D=0 indicating a package that is coincident with the main sequence and D=1 indicating a package that is as far from the main sequence as possible.
Cycles Packages participating in a package dependency cycle are in a deadly embrace with respect to reusability and their release cycle. Package dependency cycles can be easily identified by reviewing the textual reports of dependency cycles. Once these dependency cycles have been identified with JDepend, they can be broken by employing various object-oriented techniques.