Class EjbBundleDescriptorImpl

java.lang.Object
java.util.Observable
org.glassfish.deployment.common.DynamicAttributesDescriptor
org.glassfish.deployment.common.Descriptor
org.glassfish.deployment.common.RootDeploymentDescriptor
com.sun.enterprise.deployment.BundleDescriptor
com.sun.enterprise.deployment.CommonResourceBundleDescriptor
com.sun.enterprise.deployment.EjbBundleDescriptor
org.glassfish.ejb.deployment.descriptor.EjbBundleDescriptorImpl
All Implemented Interfaces:
com.sun.enterprise.deployment.JndiNameEnvironment, com.sun.enterprise.deployment.Roles, com.sun.enterprise.deployment.types.EjbReferenceContainer, com.sun.enterprise.deployment.types.MessageDestinationReferenceContainer, com.sun.enterprise.deployment.types.ResourceEnvReferenceContainer, com.sun.enterprise.deployment.types.ResourceReferenceContainer, com.sun.enterprise.deployment.types.ServiceReferenceContainer, com.sun.enterprise.deployment.WritableJndiNameEnvironment, Serializable

public final class EjbBundleDescriptorImpl extends com.sun.enterprise.deployment.EjbBundleDescriptor
See Also:
  • Field Summary

    Fields inherited from class org.glassfish.deployment.common.RootDeploymentDescriptor

    classLoader, extensions, moduleDescriptor
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    void
    Add a RelationshipDescriptor which describes a CMR field between a bean/DO/entityRef in this ejb-jar.
    void
    addSecurityRoleMapping(com.sun.enterprise.deployment.runtime.common.SecurityRoleMapping roleMapping)
    Adds the mapping.
    void
    Adds the binding as the last in the internal list.
    boolean
     
     
    com.sun.enterprise.deployment.util.ComponentVisitor
     
    com.sun.enterprise.deployment.ResourceReferenceDescriptor
     
     
     
     
    getEjbByName(String name, boolean isCreateDummy)
     
     
     
     
    Returns a name or Ejb1 as a default.
    Get all relationships in this ejb-jar.
     
    List<com.sun.enterprise.deployment.runtime.common.SecurityRoleMapping>
     
    org.glassfish.deployment.common.DescriptorVisitor
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    void
    Adds the binding as the first in the internal list.
    void
    print(StringBuffer toStringBuffer)
     
    void
    void
    setCMPResourceReference(com.sun.enterprise.deployment.ResourceReferenceDescriptor resourceReference)
     
    void
    setEjbClientJarUri(String ejbClientJarUri)
     
    void
    Clears the internal list and adds all bindings in the same order.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    void
    setRelationshipsDescription(String relationshipsDescription)
     
    void
    Setup EJB Ids during deployment and shouldn't be called at runtime
    void
    visit(org.glassfish.deployment.common.DescriptorVisitor aVisitor)
    visit the descriptor and all sub descriptors with a DOL visitor implementation

    Methods inherited from class com.sun.enterprise.deployment.EjbBundleDescriptor

    addApplicationException, addEjb, addEjbReferenceDescriptor, addEnterpriseBeansProperty, addEntityManagerFactoryReferenceDescriptor, addEntityManagerReferenceDescriptor, addEnvironmentProperty, addInterceptor, addMessageDestinationReferenceDescriptor, addPostConstructDescriptor, addPreDestroyDescriptor, addResourceEnvReferenceDescriptor, addResourceReferenceDescriptor, addServiceReferenceDescriptor, findReferencedPUs, getApplicationExceptions, getDisableNonportableJndiNames, getEjbByClassName, getEjbBySEIName, getEjbReference, getEjbReferenceDescriptors, getEjbServiceReferenceDescriptors, getEnterpriseBeansProperties, getEnterpriseBeansProperty, getEntityManagerFactoryReferenceByName, getEntityManagerFactoryReferenceDescriptors, getEntityManagerReferenceByName, getEntityManagerReferenceDescriptors, getEnvironmentProperties, getEnvironmentPropertyByName, getInjectableResourcesByClass, getInjectionInfoByClass, getInterceptorByClassName, getInterceptors, getMessageDestinationReferenceByName, getMessageDestinationReferenceDescriptors, getModuleType, getPostConstructDescriptorByClass, getPostConstructDescriptors, getPreDestroyDescriptorByClass, getPreDestroyDescriptors, getResourceEnvReferenceByName, getResourceEnvReferenceDescriptors, getResourceReferenceByName, getResourceReferenceDescriptors, getServiceReferenceByName, getServiceReferenceDescriptors, hasEjbByName, hasWebServiceClients, isEmpty, removeEjb, removeEjbReferenceDescriptor, removeEnvironmentProperty, removeMessageDestinationReferenceDescriptor, removeResourceEnvReferenceDescriptor, removeResourceReferenceDescriptor, removeRole, removeServiceReferenceDescriptor, setDisableNonportableJndiNames

    Methods inherited from class com.sun.enterprise.deployment.CommonResourceBundleDescriptor

    addResourceDescriptor, getAllResourcesDescriptors, getAllResourcesDescriptors, getResourceDescriptor, getResourceDescriptors, removeResourceDescriptor

    Methods inherited from class com.sun.enterprise.deployment.BundleDescriptor

    addBundleDescriptor, addEntityManagerFactory, addManagedBean, addMessageDestination, addRole, addRole, addRootNode, findDefaultPU, findReferencedPU, findReferencedPUsViaPCRefs, findReferencedPUsViaPURefs, findReferencedPUViaEMFRef, findReferencedPUViaEMRef, getApplication, getClassLoader, getCompatibility, getDeploymentDescriptorDir, getEntityManagerFactories, getEntityManagerFactory, getInjectableResources, getInjectableResourcesByClass, getInjectionInfoByClass, getKeepState, getManagedBeanByBeanClass, getManagedBeans, getMessageDestinationByName, getMessageDestinations, getModuleID, getModuleName, getNamedDescriptorsFrom, getNamedReferencePairsFrom, getPostConstructDescriptorByClass, getPreDestroyDescriptorByClass, getRawModuleID, getRoles, getRootNode, getUniqueFriendlyId, getVisiblePUs, getWebServiceEndpointByName, getWebServices, getWsdlDir, hasManagedBeanByBeanClass, hasMessageDestinationByName, hasWebServices, isApplication, isDDWithNoAnnotationAllowed, isFullAttribute, isFullFlag, isPackagedAsSingleModule, isPolicyModified, isStandalone, removeMessageDestination, setApplication, setCompatibility, setFullAttribute, setFullFlag, setKeepState, setPolicyModified, visit

    Methods inherited from class org.glassfish.deployment.common.RootDeploymentDescriptor

    addExtensionDescriptor, getDisplayName, getExtensionsDescriptors, getExtensionsDescriptors, getExtensionsDescriptors, getMainDescriptor, getModuleDescriptor, getSchemaLocation, getSpecVersion, isExtensionDescriptor, setClassLoader, setDisplayName, setModuleDescriptor, setModuleID, setName, setSchemaLocation, setSpecVersion

    Methods inherited from class org.glassfish.deployment.common.Descriptor

    addDescriptorExtension, addPrefixMapping, createUniqueFilenameAmongst, createUniqueNameAmongst, createUniqueNameAmongstNamedDescriptors, getDeploymentExtensions, getDescription, getDescriptorExtension, getDescriptorExtensions, getLargeIconUri, getLocalizedDescription, getLocalizedDescriptions, getLocalizedDisplayName, getLocalizedDisplayNames, getLocalizedLargeIconUri, getLocalizedLargeIconUris, getLocalizedSmallIconUri, getLocalizedSmallIconUris, getPrefixMapping, getSmallIconUri, isBoundsChecking, setBoundsChecking, setDescription, setLargeIconUri, setLocalizedDescription, setLocalizedDisplayName, setLocalizedLargeIconUri, setLocalizedSmallIconUri, setSmallIconUri

    Methods inherited from class org.glassfish.deployment.common.DynamicAttributesDescriptor

    addExtraAttribute, getExtraAttribute, getExtraAttributes, removeExtraAttribute, toString

    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.JndiNameEnvironment

    getAllResourcesDescriptors, getAllResourcesDescriptors, getResourceDescriptors

    Methods inherited from interface com.sun.enterprise.deployment.WritableJndiNameEnvironment

    addResourceDescriptor, removeResourceDescriptor
  • Constructor Details

    • EjbBundleDescriptorImpl

      public EjbBundleDescriptorImpl()
  • Method Details

    • getDefaultSpecVersion

      public String getDefaultSpecVersion()
      Specified by:
      getDefaultSpecVersion in class org.glassfish.deployment.common.RootDeploymentDescriptor
    • getName

      public String getName()
      Returns a name or Ejb1 as a default.
      Overrides:
      getName in class org.glassfish.deployment.common.RootDeploymentDescriptor
    • getEjbClientJarUri

      public String getEjbClientJarUri()
      Returns:
      the empty String or the entry name of the ejb client JAR in my archive if I have one.
    • setEjbClientJarUri

      public void setEjbClientJarUri(String ejbClientJarUri)
    • getCMPResourceReference

      public com.sun.enterprise.deployment.ResourceReferenceDescriptor getCMPResourceReference()
      Returns:
      the Resource I use for CMP.
    • setCMPResourceReference

      public void setCMPResourceReference(com.sun.enterprise.deployment.ResourceReferenceDescriptor resourceReference)
      Parameters:
      resourceReference - the resource reference I use for CMP.
    • getInterceptorBindings

      public List<InterceptorBindingDescriptor> getInterceptorBindings()
      Returns:
      list of InterceptorBindingDescriptor
    • prependInterceptorBinding

      public void prependInterceptorBinding(InterceptorBindingDescriptor binding)
      Adds the binding as the first in the internal list.
      Parameters:
      binding -
    • appendInterceptorBinding

      public void appendInterceptorBinding(InterceptorBindingDescriptor binding)
      Adds the binding as the last in the internal list.
      Parameters:
      binding -
    • setInterceptorBindings

      public void setInterceptorBindings(List<InterceptorBindingDescriptor> bindings)
      Clears the internal list and adds all bindings in the same order.
      Parameters:
      bindings -
    • getRelationshipsDescription

      public String getRelationshipsDescription()
      Returns:
      description for relationships element.
    • setRelationshipsDescription

      public void setRelationshipsDescription(String relationshipsDescription)
      Parameters:
      relationshipsDescription - EJB2.0: set description for relationships element.
    • hasRelationships

      public boolean hasRelationships()
      Returns:
      true if there are some definitions of relationships
    • getRelationships

      public Set<RelationshipDescriptor> getRelationships()
      Get all relationships in this ejb-jar.
      Returns:
      a Set of RelationshipDescriptors.
    • addRelationship

      public void addRelationship(RelationshipDescriptor relationship)
      Add a RelationshipDescriptor which describes a CMR field between a bean/DO/entityRef in this ejb-jar.
      Parameters:
      relationship -
    • removeRelationship

      public void removeRelationship(RelationshipDescriptor relationship)
      Remove a RelationshipDescriptor. Does nothing if it is not present.
      Parameters:
      relationship -
    • addSecurityRoleMapping

      public void addSecurityRoleMapping(com.sun.enterprise.deployment.runtime.common.SecurityRoleMapping roleMapping)
      Adds the mapping.
      Parameters:
      roleMapping - SecurityRoleMapping
    • getSecurityRoleMappings

      public List<com.sun.enterprise.deployment.runtime.common.SecurityRoleMapping> getSecurityRoleMappings()
      Returns:
      a list of SecurityRoleMappings
    • setupDataStructuresForRuntime

      public void setupDataStructuresForRuntime()
      Setup EJB Ids during deployment and shouldn't be called at runtime
    • getDescriptorIds

      public Collection<Long> getDescriptorIds()
      Returns:
      Collection of unique ID of EJBs within the same module
    • getEjbs

      public Set<EjbDescriptor> getEjbs()
      Overrides:
      getEjbs in class com.sun.enterprise.deployment.EjbBundleDescriptor
    • getEjbByName

      public EjbDescriptor getEjbByName(String name)
      Overrides:
      getEjbByName in class com.sun.enterprise.deployment.EjbBundleDescriptor
    • getEjbByName

      public EjbDescriptor getEjbByName(String name, boolean isCreateDummy)
      Overrides:
      getEjbByName in class com.sun.enterprise.deployment.EjbBundleDescriptor
    • createDummyEjbDescriptor

      protected DummyEjbDescriptor createDummyEjbDescriptor(String ejbName)
      Specified by:
      createDummyEjbDescriptor in class com.sun.enterprise.deployment.EjbBundleDescriptor
    • containsCMPEntity

      public boolean containsCMPEntity()
      Returns:
      true if this bundle descriptor contains at least one CMP EntityBean
    • hasAssemblyInformation

      public boolean hasAssemblyInformation()
      Returns:
      true if I have roles, permissioned roles or container transactions.
    • hasContainerTransactions

      public boolean hasContainerTransactions()
      Returns:
      true if any of my ejb's methods have been assigned transaction attributes.
    • hasPermissionedRoles

      public boolean hasPermissionedRoles()
      Returns:
      true if I have Roles to which method permissions have been assigned.
    • visit

      public void visit(org.glassfish.deployment.common.DescriptorVisitor aVisitor)
      visit the descriptor and all sub descriptors with a DOL visitor implementation
      Overrides:
      visit in class org.glassfish.deployment.common.Descriptor
      Parameters:
      aVisitor - a visitor to traverse the descriptors
    • getTracerVisitor

      public org.glassfish.deployment.common.DescriptorVisitor getTracerVisitor()
      Overrides:
      getTracerVisitor in class org.glassfish.deployment.common.RootDeploymentDescriptor
    • getBundleVisitor

      public com.sun.enterprise.deployment.util.ComponentVisitor getBundleVisitor()
      Overrides:
      getBundleVisitor in class com.sun.enterprise.deployment.EjbBundleDescriptor
      Returns:
      new EjbBundleValidator
    • setPersistenceManagerInUse

      @Deprecated(forRemoval=true, since="3.1") public void setPersistenceManagerInUse(PersistenceManagerInUse inuse)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • addPersistenceManager

      @Deprecated(forRemoval=true, since="3.1") public void addPersistenceManager(IASPersistenceManagerDescriptor pmDesc)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • print

      public void print(StringBuffer toStringBuffer)
      Overrides:
      print in class com.sun.enterprise.deployment.BundleDescriptor