Class EjbJarXml

    • Constructor Detail

      • EjbJarXml

        public EjbJarXml​(org.jdom.Element rootElement,
                         DescriptorType type)
        Constructor.
        Parameters:
        rootElement - the root element of the document
        type - the document descriptor type
    • Method Detail

      • getFileName

        public String getFileName()
        Returns the file name of this descriptor. For example "web.xml", "weblogic.xml", etc.
        Specified by:
        getFileName in interface Descriptor
        Returns:
        the file name
      • addVendorDescriptor

        public void addVendorDescriptor​(VendorEjbDescriptor descr)
        Associates a vendor specific descriptor with this web.xml.
        Parameters:
        descr - the vendor specific dexcriptor to associate
      • getVendorDescriptors

        public List<Descriptor> getVendorDescriptors()
        Returns all vendor descriptors associated with this J2EE deployment descriptor. For example for JBoss the vendor descriptor associated with web.xml is jboss-web.xml.
        Specified by:
        getVendorDescriptors in interface J2eeDescriptor
        Returns:
        List of Descriptor objects
      • getSessionEjbs

        public List<Session> getSessionEjbs()
        Returns all session ejbs in this descriptor.
        Returns:
        List of Session objects representing all session ejbs
      • getEntityEjbs

        public List<Entity> getEntityEjbs()
        Returns all entity ejbs in this descriptor.
        Returns:
        List of Entity objects representing all entity ejbs
      • getSessionEjb

        public Session getSessionEjb​(String name)
        Return a specific session definition.
        Parameters:
        name - the name of the ejb.
        Returns:
        the Session
      • getEntityEjb

        public Entity getEntityEjb​(String name)
        Return a specific entity definition.
        Parameters:
        name - the name of the ejb.
        Returns:
        the Entity