1 27 package org.objectweb.jonas_client.deployment.xml; 28 29 import org.objectweb.jonas_lib.deployment.xml.AbsEnvironmentElement; 31 import org.objectweb.jonas_lib.deployment.xml.JndiEnvRefsGroupXml; 32 import org.objectweb.jonas_lib.deployment.xml.TopLevelElement; 33 34 38 39 public class ApplicationClient extends AbsEnvironmentElement implements TopLevelElement, JndiEnvRefsGroupXml { 40 41 44 private String callbackHandler = null; 45 46 49 public ApplicationClient() { 50 super(); 51 } 52 53 56 public String getCallbackHandler() { 57 return callbackHandler; 58 } 59 60 64 public void setCallbackHandler(String callbackHandler) { 65 this.callbackHandler = callbackHandler; 66 } 67 68 73 public String toXML(int indent) { 74 StringBuffer sb = new StringBuffer (); 75 sb.append(indent(indent)); 76 sb.append("<application-client>\n"); 77 78 indent += 2; 79 80 sb.append(getIcon().toXML(indent)); 82 sb.append(xmlElement(getDisplayName(), "display-name", indent)); 84 sb.append(xmlElement(getDescription(), "description", indent)); 86 sb.append(getEnvEntryList().toXML(indent)); 88 sb.append(getEjbRefList().toXML(indent)); 90 sb.append(getServiceRefList().toXML(indent)); 92 sb.append(getResourceRefList().toXML(indent)); 94 sb.append(getResourceEnvRefList().toXML(indent)); 96 sb.append(getMessageDestinationRefList().toXML(indent)); 98 sb.append(xmlElement(callbackHandler, "callback-handler", indent)); 100 indent -= 2; 101 sb.append(indent(indent)); 102 sb.append("</application-client>\n"); 103 104 return sb.toString(); 105 } 106 107 } | Popular Tags |