diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-01-11 18:05:12 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-01-11 18:05:12 +0000 |
commit | 8db04acf1b973e1e7eda72573666468fe71478cb (patch) | |
tree | 8d6f5d47dfcfc0df62c1397e22ecb3aae3342848 /sca-java-2.x/trunk/modules/binding-ws-axis2-15-runtime/src/main | |
parent | 49b150906d545f9109ca321bcda445f9c998d23a (diff) |
Use the servlethost helper to locate the servlet host
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@897973 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/binding-ws-axis2-15-runtime/src/main')
-rw-r--r-- | sca-java-2.x/trunk/modules/binding-ws-axis2-15-runtime/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Axis2BindingProviderFactory.java | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/sca-java-2.x/trunk/modules/binding-ws-axis2-15-runtime/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Axis2BindingProviderFactory.java b/sca-java-2.x/trunk/modules/binding-ws-axis2-15-runtime/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Axis2BindingProviderFactory.java index 9715c25216..42e4cf83ac 100644 --- a/sca-java-2.x/trunk/modules/binding-ws-axis2-15-runtime/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Axis2BindingProviderFactory.java +++ b/sca-java-2.x/trunk/modules/binding-ws-axis2-15-runtime/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Axis2BindingProviderFactory.java @@ -18,14 +18,12 @@ */ package org.apache.tuscany.sca.binding.ws.axis2; -import java.util.List; - import org.apache.tuscany.sca.binding.ws.WebServiceBinding; import org.apache.tuscany.sca.core.ExtensionPointRegistry; import org.apache.tuscany.sca.core.FactoryExtensionPoint; import org.apache.tuscany.sca.databinding.DataBindingExtensionPoint; import org.apache.tuscany.sca.host.http.ServletHost; -import org.apache.tuscany.sca.host.http.ServletHostExtensionPoint; +import org.apache.tuscany.sca.host.http.ServletHostHelper; import org.apache.tuscany.sca.provider.BindingProviderFactory; import org.apache.tuscany.sca.provider.ReferenceBindingProvider; import org.apache.tuscany.sca.provider.ServiceBindingProvider; @@ -45,11 +43,7 @@ public class Axis2BindingProviderFactory implements BindingProviderFactory<WebSe private DataBindingExtensionPoint dataBindings; public Axis2BindingProviderFactory(ExtensionPointRegistry extensionPoints) { - ServletHostExtensionPoint servletHosts = extensionPoints.getExtensionPoint(ServletHostExtensionPoint.class); - List<ServletHost> hosts = servletHosts.getServletHosts(); - if (!hosts.isEmpty()) { - this.servletHost = hosts.get(0); - } + this.servletHost = ServletHostHelper.getServletHost(extensionPoints); modelFactories = extensionPoints.getExtensionPoint(FactoryExtensionPoint.class); dataBindings = extensionPoints.getExtensionPoint(DataBindingExtensionPoint.class); } |