EjbLocalRefDesc.java

00001 
00027 package org.objectweb.jonas_lib.deployment.api;
00028 
00029 import org.objectweb.jonas_lib.deployment.xml.EjbLocalRef;
00030 
00036 public class EjbLocalRefDesc {
00037 
00041     private String ejbRefName = null;
00042 
00046     private String ejbRefType = null;
00047 
00051     private String localHome = null;
00052 
00056     private String local = null;
00057 
00061     private String ejbLink = null;
00062 
00066     private String jndiName = null;
00067 
00068 
00075     public EjbLocalRefDesc(EjbLocalRef ejbLocalRef) throws DeploymentDescException {
00076         ejbRefName = ejbLocalRef.getEjbRefName();
00077         ejbRefType = ejbLocalRef.getEjbRefType();
00078         localHome = ejbLocalRef.getLocalHome();
00079         local = ejbLocalRef.getLocal();
00080         if (ejbLocalRef.getEjbLink() == null) {
00081             String err = "ejb-link missing for ejb-local-ref '" + ejbRefName + "'.";
00082             throw new DeploymentDescException(err);
00083         }
00084         ejbLink = ejbLocalRef.getEjbLink();
00085     }
00086 
00091     public String getEjbRefName() {
00092         return ejbRefName;
00093     }
00094 
00099     public String getEjbRefType() {
00100         return ejbRefType;
00101     }
00102 
00107     public String getLocalHome() {
00108         return localHome;
00109     }
00110 
00115     public String getLocal() {
00116         return local;
00117     }
00118 
00123     public String getEjbLink() {
00124         return ejbLink;
00125     }
00126 
00131     public String getJndiLocalName() {
00132         return jndiName;
00133     }
00134 
00139     public void setJndiLocalName(String jndiName) {
00140         this.jndiName = jndiName;
00141     }
00142 
00147     public String toString() {
00148         StringBuffer ret = new StringBuffer();
00149         ret.append("\ngetEjbRefName()=" + getEjbRefName());
00150         ret.append("\ngetEjbRefType()=" + getEjbRefType());
00151         ret.append("\ngetLocalHome()=" + getLocalHome());
00152         ret.append("\ngetLocal()=" + getLocal());
00153         ret.append("\ngetEjbLink()=" + getEjbLink());
00154         ret.append("\ngetJndiLocalName()=" + getJndiLocalName());
00155         return ret.toString();
00156     }
00157 
00158 }

Generated on Tue Feb 15 15:05:50 2005 for JOnAS by  doxygen 1.3.9.1