1 /* 2 * Copyright 2001-2004 The Apache Software Foundation. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 package org.apache.geronimo.ews.ws4j2ee.context.webservices.server; 17 18 import org.apache.geronimo.ews.ws4j2ee.context.webservices.server.interfaces.WSCFServiceImplBean; 19 20 /*** 21 * This encapsulates the Service Implementation bean element whih is a level 3 elemet. This is the concrete implementation of teh 22 * WSCFServiceImplBean 23 */ 24 public abstract class AbstractWSCFServiceImplBean extends WSCFElement implements WSCFServiceImplBean { 25 26 /*** 27 * Service Implementation bean ejblink 28 */ 29 protected String ejblink; 30 31 protected String servletlink; 32 33 34 35 36 //////////////////////////////jaxb interfacing block//////////////////////////////// 37 38 // protected ServiceImplBeanType jaxbServiceImplBean; 39 // 40 // 41 // public WSCFServiceImplBeanImpl(ServiceImplBeanType jaxbServiceImplBean){ 42 // if(null == jaxbServiceImplBean){return;} 43 // 44 // this.jaxbServiceImplBean = jaxbServiceImplBean; 45 // 46 //// ///////////assigning the values ////////////// 47 // 48 // if(null != this.jaxbServiceImplBean.getEjbLink()) 49 // this.ejblink = jaxbServiceImplBean.getEjbLink().getValue(); 50 // 51 // if(null != jaxbServiceImplBean.getServletLink()) 52 // this.servletlink = jaxbServiceImplBean.getServletLink().getValue(); 53 // 54 // } 55 // 56 // 57 // ///////////////////////////////////////////////////////////////////////////////////// 58 // 59 // /*** 60 // * The constructor. Parse the only child element it has: the ejblink element. 61 // * @param e Service implimentation bean Element 62 // * @throws WSCFException 63 // */ 64 // public WSCFServiceImplBeanImpl(Element e) throws WSCFException{ 65 // super(e); 66 // 67 // //extracting the ejb-link 68 // Element element = this.getChildElement(e, WSCFConstants.ELEM_WSCF_EJB_LINK); 69 // if(null != element){this.ejblink = element.getChildNodes().item(0).toString();} 70 // } 71 72 /*** 73 * Gets the ejblink elemet of the service implementation bean element 74 * 75 * @return ejb link 76 */ 77 public String getEjblink() { 78 return ejblink; 79 } 80 81 // /*** 82 // * @return 83 // */ 84 // public ServiceImplBeanType getJaxbServiceImplBean() { 85 // return jaxbServiceImplBean; 86 // } 87 88 /*** 89 * @return 90 */ 91 public String getServletlink() { 92 return servletlink; 93 } 94 95 }