You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by di...@apache.org on 2007/01/10 14:36:19 UTC
svn commit: r494810 [6/6] - in /geronimo/server/trunk/modules:
geronimo-axis2-builder/ geronimo-axis2-builder/src/
geronimo-axis2-builder/src/main/ geronimo-axis2-builder/src/main/java/
geronimo-axis2-builder/src/main/java/org/ geronimo-axis2-builder/s...
Added: geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/Axis2WebServiceContainerFactoryGBean.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/Axis2WebServiceContainerFactoryGBean.java?view=auto&rev=494810
==============================================================================
--- geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/Axis2WebServiceContainerFactoryGBean.java (added)
+++ geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/Axis2WebServiceContainerFactoryGBean.java Wed Jan 10 05:36:00 2007
@@ -0,0 +1,56 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.geronimo.axis2;
+
+import org.apache.geronimo.gbean.GBeanInfo;
+import org.apache.geronimo.gbean.GBeanInfoBuilder;
+import org.apache.geronimo.j2ee.j2eeobjectnames.NameFactory;
+import org.apache.geronimo.webservices.WebServiceContainer;
+import org.apache.geronimo.webservices.WebServiceContainerFactory;
+
+public class Axis2WebServiceContainerFactoryGBean implements WebServiceContainerFactory {
+
+ private final PortInfo portInfo;
+ private final String endpointClassName;
+ private final ClassLoader classLoader;
+
+ public Axis2WebServiceContainerFactoryGBean(PortInfo portInfo, String endpointClassName, ClassLoader classLoader) throws InstantiationException, IllegalAccessException, ClassNotFoundException {
+ this.portInfo = portInfo;
+ this.classLoader = classLoader;
+ this.endpointClassName = endpointClassName;
+ }
+
+ public WebServiceContainer getWebServiceContainer() {
+ return new Axis2WebServiceContainer(portInfo, endpointClassName, classLoader);
+ }
+
+ public static final GBeanInfo GBEAN_INFO;
+
+ static {
+ GBeanInfoBuilder infoBuilder = GBeanInfoBuilder.createStatic(Axis2WebServiceContainerFactoryGBean.class, NameFactory.GERONIMO_SERVICE);
+ infoBuilder.addAttribute("portInfo", PortInfo.class, true, true);
+ infoBuilder.addAttribute("endpointClassName", String.class, true, true);
+ infoBuilder.addAttribute("classLoader", ClassLoader.class, false);
+ infoBuilder.setConstructor(new String[]{"portInfo", "endpointClassName", "classLoader"});
+ GBEAN_INFO = infoBuilder.getBeanInfo();
+ }
+
+ public static GBeanInfo getGBeanInfo() {
+ return GBEAN_INFO;
+ }
+}
Added: geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/PortInfo.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/PortInfo.java?view=auto&rev=494810
==============================================================================
--- geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/PortInfo.java (added)
+++ geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/PortInfo.java Wed Jan 10 05:36:00 2007
@@ -0,0 +1,87 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.geronimo.axis2;
+
+import org.apache.axis2.jaxws.javaee.PortComponentHandlerType;
+
+import java.io.Serializable;
+import java.util.List;
+
+
+public class PortInfo implements Serializable {
+
+ private String serviceName;
+ private String portName;
+ private String seiInterfaceName;
+ private String wsdlFile;
+ private String servletLink;
+
+ private List<PortComponentHandlerType> handlers;
+
+ public String getPortName() {
+ return portName;
+ }
+
+ public void setPortName(String pn) {
+ portName = pn;
+ }
+
+ public String getServiceEndpointInterfaceName() {
+ return seiInterfaceName;
+ }
+
+ public void setServiceEndpointInterfaceName(String sei) {
+ seiInterfaceName = sei;
+ }
+
+ public String getServletLink() {
+ return servletLink;
+ }
+
+ public void setServletLink(String sl) {
+ servletLink = sl;
+ }
+
+ public String getWsdlFile() {
+ return wsdlFile;
+ }
+
+ public void setWsdlFile(String wf) {
+ wsdlFile = wf;
+ }
+
+ public void setHandlers(List<PortComponentHandlerType> h) {
+ handlers = h;
+ }
+
+ public List<PortComponentHandlerType> getHandlers() {
+ return handlers;
+ }
+
+ public String getServiceName() {
+ return serviceName;
+ }
+
+ public void setServiceName(String sn) {
+ serviceName = sn;
+ }
+
+ public String toString() {
+ return "[" + serviceName + ":" + portName + ":" + seiInterfaceName + ":" + wsdlFile + "]";
+ }
+}