1 26 package org.objectweb.jonas_ws.deployment.api; 27 28 import org.objectweb.jonas_web.deployment.api.WebContainerDeploymentDesc; 29 30 import org.objectweb.jonas_ws.deployment.xml.JonasPortComponent; 31 import org.objectweb.jonas_ws.deployment.xml.PortComponent; 32 33 37 public class JaxRpcPortComponentDesc extends PortComponentDesc { 38 39 40 private WebContainerDeploymentDesc webDesc = null; 41 42 51 JaxRpcPortComponentDesc(ClassLoader cl, PortComponent pc, JonasPortComponent jpc, ServiceDesc parent) 52 throws WSDeploymentDescException { 53 54 super(cl, pc, jpc, parent); 55 56 setSibLink(pc.getServiceImplBean().getServletLink()); 58 } 59 60 64 public boolean hasBeanImpl() { 65 return false; 66 } 67 68 72 public boolean hasJaxRpcImpl() { 73 return true; 74 } 75 76 82 public WebContainerDeploymentDesc getWebDesc() { 83 return webDesc; 84 } 85 86 90 public void setWebDesc(WebContainerDeploymentDesc web) { 91 webDesc = web; 92 setSib(web.getServletClassname(getSibLink())); 93 } 94 95 100 public void setDesc(Object desc) throws WSDeploymentDescException { 101 if (desc instanceof WebContainerDeploymentDesc) { 102 setWebDesc((WebContainerDeploymentDesc) desc); 103 } else { 104 throw new IllegalStateException (getI18n().getMessage("JaxRpcPortComponentDesc.illegalState", WebContainerDeploymentDesc.class.getName())); 106 } 107 } 108 109 112 public String toString() { 113 StringBuffer sb = new StringBuffer (); 114 115 sb.append(super.toString()); 116 sb.append("\ngetWebDesc()=" + getWebDesc()); 118 return sb.toString(); 119 } 120 } | Popular Tags |