import org.jboss.msc.service.ServiceController;
public class DataSourceStatisticsListener extends AbstractServiceListener<Object> {
private static final PathElement JDBC_STATISTICS = PathElement.pathElement("statistics", "jdbc");
private static final PathElement POOL_STATISTICS = PathElement.pathElement("statistics", "pool");
private final ManagementResourceRegistration overrideRegistration;
<BUG>private final Resource resource;
private final String dsName;</BUG>
private final boolean statsEnabled;
<BUG>public DataSourceStatisticsListener(final ManagementResourceRegistration overrideRegistration, Resource resource, final String dsName, final boolean statsEnabled) {
this.overrideRegistration = overrideRegistration;
this.resource = resource;
this.dsName = dsName;</BUG>
this.statsEnabled = statsEnabled;

import org.jboss.msc.service.ServiceController;
public class DataSourceStatisticsListener extends AbstractServiceListener<Object> {
private static final PathElement JDBC_STATISTICS = PathElement.pathElement("statistics", "jdbc");
private static final PathElement POOL_STATISTICS = PathElement.pathElement("statistics", "pool");
private final ManagementResourceRegistration overrideRegistration;
private final boolean statsEnabled;
public DataSourceStatisticsListener(final ManagementResourceRegistration overrideRegistration, final boolean statsEnabled) {
this.overrideRegistration = overrideRegistration;
this.statsEnabled = statsEnabled;
