Your browser does not support JavaScript and this site utilizes JavaScript to build content and provide links to additional information. You should either enable JavaScript in your browser settings or use a browser that supports JavaScript in order to take full advantage of this site.
1 25 26 27 package org.objectweb.jonas_ejb.genic; 28 29 import org.objectweb.jonas_ejb.deployment.api.BeanDesc; 30 import org.objectweb.jonas_ejb.lib.JavaType; 31 import org.objectweb.jonas_ejb.lib.JormType; 32 33 38 public class VcParam { 39 40 43 private String mTypeName = null; 44 45 48 private String mJormTypeName = null; 49 50 53 private boolean mIsEjbLocal = false; 54 57 private String mEjbName = null; 58 59 64 VcParam(Class type, BeanDesc dd) { 65 mTypeName = JavaType.getName(type); 66 mJormTypeName = JormType.getPTypeDef(type, false); 67 mIsEjbLocal = javax.ejb.EJBLocalObject .class.isAssignableFrom(type); 68 if (mIsEjbLocal) { 69 BeanDesc bdp = dd.getDeploymentDesc().getBeanDescWithLocalInterface(mTypeName); 70 if (bdp == null) { 71 throw new Error ("VcParam: Cannot get the BeanDesc associated to the interface local '" + mTypeName + "'"); 72 } 73 mEjbName = bdp.getEjbName(); 74 } 75 } 76 77 80 public String getTypeName() { 81 return mTypeName; 82 } 83 84 87 public String getJormType() { 88 return mJormTypeName; 89 } 90 91 94 public boolean isEjbLocal() { 95 return mIsEjbLocal; 96 } 97 98 101 public String getEjbName() { 102 if (!isEjbLocal()) { 103 throw new Error ("VcParam.getEjbName(): No BeanDesc associated to the param '" 104 + mTypeName + "'"); 105 } 106 return mEjbName; 107 } 108 109 } 110 111
| Popular Tags
|