FileDocCategorySizeDatePackage
EjbAbstractDescriptor.javaAPI DocGlassfish v2 API8809Fri May 04 22:31:20 BST 2007None

EjbAbstractDescriptor

public abstract class EjbAbstractDescriptor extends Descriptor implements NamedDescriptor
I am an abstract super class of all ejb descriptors.
author
Danny Coward

Fields Summary
private String
homeClassName
private String
remoteClassName
private String
localHomeClassName
private String
localClassName
private Set
remoteBusinessClassNames
private Set
localBusinessClassNames
private String
webServiceEndpointInterfaceName
private String
jndiName
private String
mappedName
Constructors Summary
public EjbAbstractDescriptor()
Default constructor.

    
       
	    	
      
    
protected EjbAbstractDescriptor(EjbAbstractDescriptor other)
Copy constructor.

	super(other);
	this.homeClassName = other.homeClassName;
	this.remoteClassName = other.remoteClassName;
        this.remoteBusinessClassNames = 
            new HashSet<String>(other.remoteBusinessClassNames);
        this.localHomeClassName = other.localHomeClassName;
        this.localClassName = other.localClassName;
        this.localBusinessClassNames = 
            new HashSet<String>(other.localBusinessClassNames);
        this.webServiceEndpointInterfaceName = 
            other.webServiceEndpointInterfaceName;
	this.jndiName = other.jndiName;
    
Methods Summary
public voidaddLocalBusinessClassName(java.lang.String className)

        localBusinessClassNames.add(className);
    
public voidaddRemoteBusinessClassName(java.lang.String className)

        remoteBusinessClassNames.add(className);
    
public java.lang.StringgetHomeClassName()
Returns the classname of the Home interface of this ejb.

	return this.homeClassName;
    
public java.lang.StringgetJndiName()
Return the JNDI name which will be assigned to the ejb home object ar runtime.

	if (this.jndiName == null) {
	    this.jndiName = "";
	}
	return (jndiName != null && jndiName.length() > 0)?
                jndiName : getMappedName();
    
public java.util.SetgetLocalBusinessClassNames()
Returns the set of local business interface names for this ejb. If the bean does not expose a local business view, return a set of size 0.

        return new HashSet<String>( localBusinessClassNames );
    
public java.lang.StringgetLocalClassName()

return
the fully qualified class name for the local interface of this ejb

        return localClassName;
    
public java.lang.StringgetLocalHomeClassName()

return
the fully qualified class name for the local home interface of this ejb

        return localHomeClassName;
    
public java.lang.StringgetMappedName()

        return (mappedName != null)? mappedName : "";
    
public java.util.SetgetRemoteBusinessClassNames()
Returns the set of remote business interface names for this ejb. If the bean does not expose a remote business view, return a set of size 0.

        return new HashSet<String>( remoteBusinessClassNames );
    
public java.lang.StringgetRemoteClassName()
Returns the classname of the Remote interface of this ejb.

	return this.remoteClassName;
    
public abstract java.lang.StringgetType()

public java.lang.StringgetWebServiceEndpointInterfaceName()

        return webServiceEndpointInterfaceName;
    
public booleanhasWebServiceEndpointInterface()

return
true if this is an EJB that implements a web service endpoint.

        return (getWebServiceEndpointInterfaceName() != null);        
    
public booleanisLocalBusinessInterfacesSupported()

return
true if the EJB has 1 or more local business interfaces

        return (localBusinessClassNames.size() > 0);
    
public booleanisLocalInterfacesSupported()

return
true if the EJB described has a LocalHome/Local interface

        return (getLocalHomeClassName() != null);
    
public booleanisRemoteBusinessInterfacesSupported()

return
true if the EJB has 1 or more remote business interfaces

        return (remoteBusinessClassNames.size() > 0);
    
public booleanisRemoteInterfacesSupported()

return
true if the EJB has a RemoteHome/Remote interface

        return (getHomeClassName() != null);        
    
public voidprint(java.lang.StringBuffer toStringBuffer)
Returns a formatted String of the attributes of this object.

        super.print(toStringBuffer);
	toStringBuffer.append("\n homeClassName ").append(homeClassName);
	toStringBuffer.append("\n remoteClassName ").append(remoteClassName);
	toStringBuffer.append("\n remoteBusinessIntfs ").append(remoteBusinessClassNames).append("\n");
	toStringBuffer.append("\n localhomeClassName ").append(localHomeClassName);
	toStringBuffer.append("\n localClassName ").append(localClassName);
	toStringBuffer.append("\n localBusinessIntfs ").append(localBusinessClassNames).append("\n");
	toStringBuffer.append("\n jndiName ").append(jndiName).append("\n");
    
public voidsetHomeClassName(java.lang.String homeClassName)
Sets the classname of the Home interface of this ejb.

	this.homeClassName = homeClassName;
    
public voidsetJndiName(java.lang.String jndiName)
Sets the JNDI name which will be assigned to the ejb home object ar runtime.

	this.jndiName = jndiName;
	if (this.getName().equals("")) {
	    super.setName(jndiName);
	}
	this.changed();
    
public voidsetLocalClassName(java.lang.String localClassName)
Sets the classname for the local interface of this ejb

param
localClassName fully qualified class name for the interface

        this.localClassName = localClassName;
    
public voidsetLocalHomeClassName(java.lang.String localHomeClassName)
Sets the classname for the local home interface of this ejb

param
localHomeClassName fully qualified class name for the interface

        this.localHomeClassName = localHomeClassName;
    
public voidsetMappedName(java.lang.String mappedName)

        this.mappedName = mappedName;
        this.changed();
    
public voidsetRemoteClassName(java.lang.String remoteClassName)
Sets the classname of the Remote interface of this ejb.

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

public voidsetWebServiceEndpointInterfaceName(java.lang.String name)

        this.webServiceEndpointInterfaceName = name;