Author: jim.ma
Date: 2014-07-07 03:16:20 -0400 (Mon, 07 Jul 2014)
New Revision: 18782
Modified:
common/branches/metrics/src/main/java/org/jboss/ws/common/deployment/DefaultLifecycleHandler.java
common/branches/metrics/src/main/java/org/jboss/ws/common/management/DefaultEndpointMetricsFactory.java
common/branches/metrics/src/main/java/org/jboss/ws/common/spi/DefaultSPIProvider.java
Log:
[JBWS-3808]:Remove default DefaultEndpointMetricsFactory
Modified:
common/branches/metrics/src/main/java/org/jboss/ws/common/deployment/DefaultLifecycleHandler.java
===================================================================
---
common/branches/metrics/src/main/java/org/jboss/ws/common/deployment/DefaultLifecycleHandler.java 2014-07-07
06:56:38 UTC (rev 18781)
+++
common/branches/metrics/src/main/java/org/jboss/ws/common/deployment/DefaultLifecycleHandler.java 2014-07-07
07:16:20 UTC (rev 18782)
@@ -56,9 +56,6 @@
}
else
{
- if (ep.getEndpointMetrics() != null)
- ep.getEndpointMetrics().start();
-
InvocationHandler invHandler = ep.getInvocationHandler();
if (invHandler == null)
throw Messages.MESSAGES.invocationHandlerNotAvailable(ep.getName());
@@ -81,9 +78,6 @@
}
else
{
- if (ep.getEndpointMetrics() != null)
- ep.getEndpointMetrics().stop();
-
ep.setState(EndpointState.STOPPED);
}
}
Modified:
common/branches/metrics/src/main/java/org/jboss/ws/common/management/DefaultEndpointMetricsFactory.java
===================================================================
---
common/branches/metrics/src/main/java/org/jboss/ws/common/management/DefaultEndpointMetricsFactory.java 2014-07-07
06:56:38 UTC (rev 18781)
+++
common/branches/metrics/src/main/java/org/jboss/ws/common/management/DefaultEndpointMetricsFactory.java 2014-07-07
07:16:20 UTC (rev 18782)
@@ -1,40 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.common.management;
-
-import org.jboss.wsf.spi.management.EndpointMetrics;
-import org.jboss.wsf.spi.management.EndpointMetricsFactory;
-
-/**
- * Endpoint Metrics factory
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 08-Aug-2007
- */
-public class DefaultEndpointMetricsFactory extends EndpointMetricsFactory
-{
- @Override
- public EndpointMetrics newEndpointMetrics()
- {
- return new EndpointMetricsImpl();
- }
-}
Modified:
common/branches/metrics/src/main/java/org/jboss/ws/common/spi/DefaultSPIProvider.java
===================================================================
---
common/branches/metrics/src/main/java/org/jboss/ws/common/spi/DefaultSPIProvider.java 2014-07-07
06:56:38 UTC (rev 18781)
+++
common/branches/metrics/src/main/java/org/jboss/ws/common/spi/DefaultSPIProvider.java 2014-07-07
07:16:20 UTC (rev 18782)
@@ -25,7 +25,6 @@
import org.jboss.ws.common.Messages;
import org.jboss.ws.common.deployment.DefaultDeploymentModelFactory;
import org.jboss.ws.common.deployment.DefaultLifecycleHandlerFactory;
-import org.jboss.ws.common.management.DefaultEndpointMetricsFactory;
import org.jboss.ws.common.management.DefaultEndpointRegistryFactory;
import org.jboss.ws.common.management.DefaultJMSEndpointResolver;
import org.jboss.ws.common.security.DefaultSecurityAdapterFactory;
@@ -33,7 +32,6 @@
import org.jboss.wsf.spi.deployment.DeploymentModelFactory;
import org.jboss.wsf.spi.deployment.LifecycleHandlerFactory;
import org.jboss.wsf.spi.invocation.SecurityAdaptorFactory;
-import org.jboss.wsf.spi.management.EndpointMetricsFactory;
import org.jboss.wsf.spi.management.EndpointRegistryFactory;
import org.jboss.wsf.spi.management.JMSEndpointResolver;
@@ -56,10 +54,6 @@
{
returnType = loadService(spiType, DefaultDeploymentModelFactory.class, loader);
}
- else if (EndpointMetricsFactory.class.equals(spiType))
- {
- returnType = loadService(spiType, DefaultEndpointMetricsFactory.class, loader);
- }
else if (LifecycleHandlerFactory.class.equals(spiType))
{
returnType = loadService(spiType, DefaultLifecycleHandlerFactory.class,
loader);