Class ResourceAdapterParser

    • Constructor Detail

      • ResourceAdapterParser

        public ResourceAdapterParser()
    • Method Detail

      • parse

        public Activations parse​(InputStream xmlInputStream)
                          throws Exception
        Description copied from interface: MetadataParser
        Parse the xml file and return the JCAMetaData for which the concrete parser is designed. Note that is responsibility of the client to open and close the stream
        Specified by:
        parse in interface MetadataParser<Activations>
        Parameters:
        xmlInputStream - an InputStrema opened on the xml file to parse
        Returns:
        The metadata
        Throws:
        Exception - Thrown if an error occurs
      • parse

        public Activations parse​(XMLStreamReader reader)
                          throws Exception
        Description copied from interface: MetadataParser
        Parse the xml file and return the JCAMetaData for which the concrete parser is designed. Note that is responsibility of the client to open and close the stream
        Specified by:
        parse in interface MetadataParser<Activations>
        Parameters:
        reader - an XMLStreamReader opened on the xml file to parse
        Returns:
        The metadata
        Throws:
        Exception - Thrown if an error occurs