com.sun.enterprise.deployment
Class EjbAbstractDescriptor

java.lang.Object
  extended by java.util.Observable
      extended by com.sun.enterprise.deployment.DynamicAttributesDescriptor
          extended by com.sun.enterprise.deployment.Descriptor
              extended by com.sun.enterprise.deployment.EjbAbstractDescriptor
All Implemented Interfaces:
NamedDescriptor, java.io.Serializable
Direct Known Subclasses:
EjbDescriptor

public abstract class EjbAbstractDescriptor
extends Descriptor
implements NamedDescriptor

I am an abstract super class of all ejb descriptors.

Author:
Danny Coward
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.sun.enterprise.deployment.Descriptor
DESCRIPTION_CHANGED, DESCRIPTOR_CHANGED, docType, LARGE_ICON_CHANGED, NAME_CHANGED, SMALL_ICON_CHANGED
 
Constructor Summary
  EjbAbstractDescriptor()
          Default constructor.
protected EjbAbstractDescriptor(EjbAbstractDescriptor other)
          Copy constructor.
 
Method Summary
 void addLocalBusinessClassName(java.lang.String className)
           
 void addNoInterfaceLocalBeanClass(java.lang.String className)
          Add a classname for a no-interface view of the local ejb
 void addRemoteBusinessClassName(java.lang.String className)
           
 java.lang.String getHomeClassName()
          Returns the classname of the Home interface of this ejb.
 java.lang.String getJndiName()
          Return the JNDI name which will be assigned to the ejb home object ar runtime.
 java.util.Set<java.lang.String> getLocalBusinessClassNames()
          Returns the set of local business interface names for this ejb.
 java.lang.String getLocalClassName()
           
 java.lang.String getLocalHomeClassName()
           
 java.lang.String getMappedName()
           
 java.util.Set<java.lang.String> getNoInterfaceLocalBeanClasses()
           
 java.util.Set<java.lang.String> getRemoteBusinessClassNames()
          Returns the set of remote business interface names for this ejb.
 java.lang.String getRemoteClassName()
          Returns the classname of the Remote interface of this ejb.
abstract  java.lang.String getType()
           
 java.lang.String getWebServiceEndpointInterfaceName()
           
 boolean hasWebServiceEndpointInterface()
           
 boolean isLocalBean()
           
 boolean isLocalBusinessInterfacesSupported()
           
 boolean isLocalInterfacesSupported()
           
 boolean isRemoteBusinessInterfacesSupported()
           
 boolean isRemoteInterfacesSupported()
           
 void print(java.lang.StringBuffer toStringBuffer)
          Returns a formatted String of the attributes of this object.
 void setHomeClassName(java.lang.String homeClassName)
          Sets the classname of the Home interface of this ejb.
 void setJndiName(java.lang.String jndiName)
          Sets the JNDI name which will be assigned to the ejb home object ar runtime.
 void setLocalBean(boolean localBean)
          Marks this ejb as a LocalBean.
 void setLocalClassName(java.lang.String localClassName)
          Sets the classname for the local interface of this ejb
 void setLocalHomeClassName(java.lang.String localHomeClassName)
          Sets the classname for the local home interface of this ejb
 void setMappedName(java.lang.String mappedName)
           
 void setRemoteClassName(java.lang.String remoteClassName)
          Sets the classname of the Remote interface of this ejb.
abstract  void setType(java.lang.String type)
           
 void setWebServiceEndpointInterfaceName(java.lang.String name)
           
 
Methods inherited from class com.sun.enterprise.deployment.Descriptor
addDeploymentExtension, addPrefixMapping, createUniqueFilenameAmongst, createUniqueNameAmongst, createUniqueNameAmongstNamedDescriptors, fillDocType, getDeploymentExtensions, getDescription, getDisplayName, getDocType, getLargeIconUri, getLocalizedDescription, getLocalizedDescriptions, getLocalizedDisplayName, getLocalizedDisplayNames, getLocalizedLargeIconUri, getLocalizedLargeIconUris, getLocalizedSmallIconUri, getLocalizedSmallIconUris, getName, getPrefixMapping, getSmallIconUri, isBoundsChecking, setBoundsChecking, setDescription, setDisplayName, setLargeIconUri, setLocalizedDescription, setLocalizedDisplayName, setLocalizedLargeIconUri, setLocalizedSmallIconUri, setName, setSmallIconUri, visit
 
Methods inherited from class com.sun.enterprise.deployment.DynamicAttributesDescriptor
addExtraAttribute, getExtraAttribute, getExtraAttributes, removeExtraAttribute, toString
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.sun.enterprise.deployment.NamedDescriptor
getName
 

Constructor Detail

EjbAbstractDescriptor

public EjbAbstractDescriptor()
Default constructor.


EjbAbstractDescriptor

protected EjbAbstractDescriptor(EjbAbstractDescriptor other)
Copy constructor.

Method Detail

getType

public abstract java.lang.String getType()

setType

public abstract void setType(java.lang.String type)

getHomeClassName

public java.lang.String getHomeClassName()
Returns the classname of the Home interface of this ejb.


setHomeClassName

public void setHomeClassName(java.lang.String homeClassName)
Sets the classname of the Home interface of this ejb.


setRemoteClassName

public void setRemoteClassName(java.lang.String remoteClassName)
Sets the classname of the Remote interface of this ejb.


getRemoteClassName

public java.lang.String getRemoteClassName()
Returns the classname of the Remote interface of this ejb.


setLocalHomeClassName

public void setLocalHomeClassName(java.lang.String localHomeClassName)
Sets the classname for the local home interface of this ejb

Parameters:
localHomeClassName - fully qualified class name for the interface

getLocalHomeClassName

public java.lang.String getLocalHomeClassName()
Returns:
the fully qualified class name for the local home interface of this ejb

setLocalClassName

public void setLocalClassName(java.lang.String localClassName)
Sets the classname for the local interface of this ejb

Parameters:
localClassName - fully qualified class name for the interface

getLocalClassName

public java.lang.String getLocalClassName()
Returns:
the fully qualified class name for the local interface of this ejb

addNoInterfaceLocalBeanClass

public void addNoInterfaceLocalBeanClass(java.lang.String className)
Add a classname for a no-interface view of the local ejb

Parameters:
localClassName - fully qualified class name for the interface

getNoInterfaceLocalBeanClasses

public java.util.Set<java.lang.String> getNoInterfaceLocalBeanClasses()
Returns:
all the public classes of this no-interface local ejb

addRemoteBusinessClassName

public void addRemoteBusinessClassName(java.lang.String className)

addLocalBusinessClassName

public void addLocalBusinessClassName(java.lang.String className)

getRemoteBusinessClassNames

public java.util.Set<java.lang.String> getRemoteBusinessClassNames()
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.


getLocalBusinessClassNames

public java.util.Set<java.lang.String> getLocalBusinessClassNames()
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.


setWebServiceEndpointInterfaceName

public void setWebServiceEndpointInterfaceName(java.lang.String name)

getWebServiceEndpointInterfaceName

public java.lang.String getWebServiceEndpointInterfaceName()

getJndiName

public java.lang.String getJndiName()
Return the JNDI name which will be assigned to the ejb home object ar runtime.

Specified by:
getJndiName in interface NamedDescriptor
Returns:
java.lang.String JNDI name

setJndiName

public void setJndiName(java.lang.String jndiName)
Sets the JNDI name which will be assigned to the ejb home object ar runtime.

Specified by:
setJndiName in interface NamedDescriptor
Parameters:
jndiName - the new JNDI name of the receiver.

getMappedName

public java.lang.String getMappedName()

setMappedName

public void setMappedName(java.lang.String mappedName)

setLocalBean

public void setLocalBean(boolean localBean)
Marks this ejb as a LocalBean.


print

public void print(java.lang.StringBuffer toStringBuffer)
Returns a formatted String of the attributes of this object.

Overrides:
print in class Descriptor

isLocalInterfacesSupported

public boolean isLocalInterfacesSupported()
Returns:
true if the EJB described has a LocalHome/Local interface

isLocalBusinessInterfacesSupported

public boolean isLocalBusinessInterfacesSupported()
Returns:
true if the EJB has 1 or more local business interfaces

isRemoteInterfacesSupported

public boolean isRemoteInterfacesSupported()
Returns:
true if the EJB has a RemoteHome/Remote interface

isRemoteBusinessInterfacesSupported

public boolean isRemoteBusinessInterfacesSupported()
Returns:
true if the EJB has 1 or more remote business interfaces

hasWebServiceEndpointInterface

public boolean hasWebServiceEndpointInterface()
Returns:
true if this is an EJB that implements a web service endpoint.

isLocalBean

public boolean isLocalBean()
Returns:
true if this is an EJB provides a no interface Local view.


Copyright © 2012 GlassFish Community. All Rights Reserved.