Class ResourceAdapterParser

All Implemented Interfaces:
MetadataParser<Activations>

public class ResourceAdapterParser extends CommonIronJacamarParser implements MetadataParser<Activations>
A ResourceAdapterParserr.
Author:
Jesper Pedersen
  • Constructor Details

    • ResourceAdapterParser

      public ResourceAdapterParser()
  • Method Details

    • 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