FileDocCategorySizeDatePackage
ContextEjb.javaAPI DocGlassfish v2 API5220Fri May 04 22:32:08 BST 2007org.apache.catalina.deploy

ContextEjb

public class ContextEjb extends Object 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
version
$Revision: 1.3 $ $Date: 2007/05/05 05:32:08 $

Fields Summary
private String
description
The description of this EJB.
private String
home
The name of the EJB home implementation class.
private String
link
The link to a J2EE EJB definition.
private String
name
The name of this EJB.
private String
remote
The name of the EJB remote implementation class.
private String
type
The name of the EJB bean implementation class.
protected NamingResources
resources
The NamingResources with which we are associated (if any).
Constructors Summary
Methods Summary
public java.lang.StringgetDescription()


       
        return (this.description);
    
public java.lang.StringgetHome()


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


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


       
        return (this.name);
    
public NamingResourcesgetNamingResources()


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


       
        return (this.remote);
    
public java.lang.StringgetType()


       
        return (this.type);
    
public voidsetDescription(java.lang.String description)

        this.description = description;
    
public voidsetHome(java.lang.String home)

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

        this.link = link;
    
public voidsetName(java.lang.String name)

        this.name = name;
    
voidsetNamingResources(NamingResources resources)

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

        this.remote = remote;
    
public voidsetType(java.lang.String type)

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


        StringBuffer sb = new StringBuffer("ContextEjb[");
        sb.append("name=");
        sb.append(name);
        if (description != null) {
            sb.append(", description=");
            sb.append(description);
        }
        if (type != null) {
            sb.append(", type=");
            sb.append(type);
        }
        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());