Class WeblogicEjbJarXml

    • Constructor Detail

      • WeblogicEjbJarXml

        public WeblogicEjbJarXml​(org.jdom.Element rootElement,
                                 DescriptorType type)
        Constructor.
        Parameters:
        rootElement - The root of the DOM document representing the parsed deployment descriptor
        type - The 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
      • getJndiName

        public String getJndiName​(EjbDef ejb)
        Returns the jndi name for an EJB.
        Specified by:
        getJndiName in interface VendorEjbDescriptor
        Parameters:
        ejb - The EjbDef to get the jndi for
        Returns:
        the jndi name of the ejb
      • addDispatchPolicy

        public void addDispatchPolicy​(EjbDef ejb,
                                      String policy)
        Adds a dispatch policy to a ejb definition.
        Parameters:
        ejb - The ejb to be modified
        policy - The policy to add
        Throws:
        IllegalArgumentException - if the given ejb does not exist in the descriptor
      • getDispatchPolicy

        public String getDispatchPolicy​(EjbDef ejb)
        Returns the dispatch policy for a given ejb.
        Parameters:
        ejb - The ejb to get the dispatch policy for
        Returns:
        the dispatch policy or null if no one is specified
        Throws:
        IllegalArgumentException - if the given ejb does not exist in the descriptor