1 27 28 package org.objectweb.jonas_ws.deployment.xml; 29 30 import org.objectweb.jonas_lib.deployment.xml.AbsElement; 31 32 37 38 public class ServiceImplBean extends AbsElement { 39 40 43 private String ejbLink = null; 44 45 48 private String servletLink = null; 49 50 51 54 public ServiceImplBean() { 55 super(); 56 } 57 58 62 public String getEjbLink() { 63 return ejbLink; 64 } 65 66 70 public void setEjbLink(String ejbLink) { 71 this.ejbLink = ejbLink; 72 } 73 74 78 public String getServletLink() { 79 return servletLink; 80 } 81 82 86 public void setServletLink(String servletLink) { 87 this.servletLink = servletLink; 88 } 89 90 95 public String toXML(int indent) { 96 StringBuffer sb = new StringBuffer (); 97 sb.append(indent(indent)); 98 sb.append("<service-impl-bean>\n"); 99 100 indent += 2; 101 102 sb.append(xmlElement(ejbLink, "ejb-link", indent)); 104 sb.append(xmlElement(servletLink, "servlet-link", indent)); 106 indent -= 2; 107 sb.append(indent(indent)); 108 sb.append("</service-impl-bean>\n"); 109 110 return sb.toString(); 111 } 112 } 113 | Popular Tags |