Author: asoldano
Date: 2014-06-20 04:50:53 -0400 (Fri, 20 Jun 2014)
New Revision: 18751
Modified:
common/trunk/src/main/java/org/jboss/ws/common/deployment/EndpointMetricsDeploymentAspect.java
Log:
[JBWS-3733] Revert changes in rev. 18721
Modified:
common/trunk/src/main/java/org/jboss/ws/common/deployment/EndpointMetricsDeploymentAspect.java
===================================================================
---
common/trunk/src/main/java/org/jboss/ws/common/deployment/EndpointMetricsDeploymentAspect.java 2014-06-20
06:37:20 UTC (rev 18750)
+++
common/trunk/src/main/java/org/jboss/ws/common/deployment/EndpointMetricsDeploymentAspect.java 2014-06-20
08:50:53 UTC (rev 18751)
@@ -21,16 +21,12 @@
*/
package org.jboss.ws.common.deployment;
-import org.jboss.ws.common.configuration.ConfigHelper;
import org.jboss.ws.common.integration.AbstractDeploymentAspect;
import org.jboss.wsf.spi.SPIProvider;
import org.jboss.wsf.spi.deployment.Deployment;
import org.jboss.wsf.spi.deployment.Endpoint;
import org.jboss.wsf.spi.management.EndpointMetrics;
import org.jboss.wsf.spi.management.EndpointMetricsFactory;
-import org.jboss.wsf.spi.management.ServerConfig;
-import org.jboss.wsf.spi.management.ServerConfigFactory;
-import org.jboss.wsf.spi.metadata.config.EndpointConfig;
/**
* A deployer that assigns the metrics to the Endpoint
@@ -44,17 +40,10 @@
public void start(Deployment dep)
{
EndpointMetricsFactory factory =
SPIProvider.getInstance().getSPI(EndpointMetricsFactory.class);
- ServerConfigFactory scf =
SPIProvider.getInstance().getSPI(ServerConfigFactory.class);
- EndpointConfig defaultConfig =
scf.getServerConfig().getEndpointConfig(EndpointConfig.STANDARD_ENDPOINT_CONFIG);
- boolean enabled =
Boolean.valueOf(defaultConfig.getProperty(EndpointConfig.STATISTICS_ENABLED));
- if (enabled)
+ for (Endpoint ep : dep.getService().getEndpoints())
{
- for (Endpoint ep : dep.getService().getEndpoints())
- {
-
- EndpointMetrics metrics = factory.newEndpointMetrics();
- ep.setEndpointMetrics(metrics);
- }
+ EndpointMetrics metrics = factory.newEndpointMetrics();
+ ep.setEndpointMetrics(metrics);
}
}
}
Show replies by date