/* Generated by Together */

package cobalt.deployment.descriptor.dist;

import cobalt.deployment.descriptor.EjbDescriptor;
import cobalt.deployment.descriptor.EjbReferenceDescriptor;

/**
 * Title:        J2EE ejb reference descriptor
 * Description:  Represents J2EE-specific ejb reference description for standard ejb reference
 * Copyright:    Copyright (c) 2001
 * Company:      ETRI
 * @author Yeon Jun Choi
 * @version 1.0
 */

public class J2eeEjbReferenceDescriptor {
    public J2eeEjbReferenceDescriptor(EjbDescriptor ejb, EjbReferenceDescriptor ref) {
        this.ejb = ejb;
        this.descriptor = ref;
    }

    public EjbReferenceDescriptor getDescriptor(){ return descriptor; }

    public void setDescriptor(EjbReferenceDescriptor descriptor){ this.descriptor = descriptor; }

    public String getJndiName(){ return descriptor.getJndiName()/*jndiName*/; }

    public void setJndiName(String jndiName){ descriptor.setJndiName(jndiName)/*this.jndiName = jndiName*/; }

    public String getName() {
        return descriptor.getName();
    }

    public EjbDescriptor getEjb(){
            return ejb;
        }

    public void setEjb(EjbDescriptor ejb){
            this.ejb = ejb;
        }

	public String getEjbName() {
        return ejb.getEjbName();
    }

    private EjbReferenceDescriptor descriptor;
    //private String jndiName;
    private EjbDescriptor ejb;
}
