FileDocCategorySizeDatePackage
ContextEjb.javaAPI DocApache Tomcat 6.0.143138Fri Jul 20 04:20:32 BST 2007org.apache.catalina.deploy

ContextEjb

public class ContextEjb extends ResourceBase implements Serializable
Representation of an EJB resource reference for a web application, as represented in a <ejb-ref> element in the deployment descriptor.
author
Craig R. McClanahan
author
Peter Rossbach (pero@apache.org)
version
$Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (mar., 24 oct. 2006) $

Fields Summary
private String
home
The name of the EJB home implementation class.
private String
link
The link to a J2EE EJB definition.
private String
remote
The name of the EJB remote implementation class.
Constructors Summary
Methods Summary
public java.lang.StringgetHome()


       
        return (this.home);
    
public java.lang.StringgetLink()


       
        return (this.link);
    
public java.lang.StringgetRemote()


       
        return (this.remote);
    
public voidsetHome(java.lang.String home)

        this.home = home;
    
public voidsetLink(java.lang.String link)

        this.link = link;
    
public voidsetRemote(java.lang.String remote)

        this.remote = remote;
    
public java.lang.StringtoString()
Return a String representation of this object.


        StringBuffer sb = new StringBuffer("ContextEjb[");
        sb.append("name=");
        sb.append(getName());
        if (getDescription() != null) {
            sb.append(", description=");
            sb.append(getDescription());
        }
        if (getType() != null) {
            sb.append(", type=");
            sb.append(getType());
        }
        if (home != null) {
            sb.append(", home=");
            sb.append(home);
        }
        if (remote != null) {
            sb.append(", remote=");
            sb.append(remote);
        }
        if (link != null) {
            sb.append(", link=");
            sb.append(link);
        }
        sb.append("]");
        return (sb.toString());