1 26 package org.objectweb.jonas_ws.deployment.api; 27 28 import org.objectweb.jonas_ejb.deployment.api.SessionStatelessDesc; 29 30 import org.objectweb.jonas_ws.deployment.xml.JonasPortComponent; 31 import org.objectweb.jonas_ws.deployment.xml.PortComponent; 32 33 37 public class SSBPortComponentDesc extends PortComponentDesc { 38 39 40 private SessionStatelessDesc ssDesc = null; 41 42 51 SSBPortComponentDesc(ClassLoader cl, PortComponent pc, JonasPortComponent jpc, ServiceDesc parent) throws WSDeploymentDescException { 52 53 super(cl, pc, jpc, parent); 54 55 setSibLink(pc.getServiceImplBean().getEjbLink()); 57 } 58 59 63 public boolean hasBeanImpl() { 64 return true; 65 } 66 67 71 public boolean hasJaxRpcImpl() { 72 return false; 73 } 74 75 81 public SessionStatelessDesc getSessionStatelessDesc() { 82 return ssDesc; 83 } 84 85 89 public void setSessionStatelessDesc(SessionStatelessDesc bean) { 90 ssDesc = bean; 91 setSib(bean.getEjbClass().getName()); 92 } 93 94 99 public void setDesc(Object desc) throws WSDeploymentDescException { 100 if (desc instanceof SessionStatelessDesc) { 101 setSessionStatelessDesc((SessionStatelessDesc) desc); 102 } else { 103 throw new IllegalStateException (getI18n().getMessage( 104 "SSBPortComponentDesc.illegalState", SessionStatelessDesc.class.getName())); } 106 } 107 108 111 public String toString() { 112 StringBuffer sb = new StringBuffer (); 113 114 sb.append(super.toString()); 115 sb.append("\ngetSessionStatelessDesc().displayName=" + getSessionStatelessDesc()); 116 117 return sb.toString(); 118 } 119 } | Popular Tags |