org.jboss.jca.common.metadata
Interface MetadataParser<T extends org.jboss.jca.common.api.metadata.JCAMetadata>

Type Parameters:
T -
All Known Implementing Classes:
DsParser, DsParser, IronJacamarParser, IronJacamarParser, RaParser, ResourceAdapterParser, ResourceAdapterParser

public interface MetadataParser<T extends org.jboss.jca.common.api.metadata.JCAMetadata>

A MetadataParser.

Author:
Stefano Maestri

Method Summary
 T parse(InputStream xmlInputStream)
          Parse the xml file and return the JCAMetaData for which the concrete parser is designed.
 T parse(XMLStreamReader reader)
          Parse the xml file and return the JCAMetaData for which the concrete parser is designed.
 

Method Detail

parse

T parse(InputStream xmlInputStream)
                                                              throws Exception
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

Parameters:
xmlInputStream - an InputStrema opened on the xml file to parse
Returns:
The metadata
Throws:
Exception - Thrown if an error occurs

parse

T parse(XMLStreamReader reader)
                                                              throws Exception
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

Parameters:
reader - an XMLStreamReader opened on the xml file to parse
Returns:
The metadata
Throws:
Exception - Thrown if an error occurs


Copyright © 2008 Red Hat Middleware LLC (http://www.jboss.com/)