org.apache.aries.application.modelling
Interface ParserProxy


public interface ParserProxy

This interface is implemented by the service which proxies the Apache Aries blueprint parser. ParserProxy services offer higher level methods built on top of the Blueprint parser.


Method Summary
 List<? extends WrappedServiceMetadata> parse(InputStream blueprintToParse)
          Parse an InputStream containing blueprint xml and extract the parsed ServiceMetadata objects
 List<? extends WrappedServiceMetadata> parse(List<URL> blueprintsToParse)
          Parse blueprint xml files and extract the parsed ServiceMetadata objects
 List<? extends WrappedServiceMetadata> parse(URL blueprintToParse)
          Parse a blueprint xml files and extract the parsed ServiceMetadata objects
 ParsedServiceElements parseAllServiceElements(InputStream blueprintToParse)
          Parse an InputStream containing blueprint xml and extract Service, Reference and RefList elements.
 

Method Detail

parse

List<? extends WrappedServiceMetadata> parse(List<URL> blueprintsToParse)
                                             throws Exception
Parse blueprint xml files and extract the parsed ServiceMetadata objects

Parameters:
blueprintsToParse - URLs to blueprint xml files
Returns:
List of (wrapped) ServiceMetadata objects
Throws:
Exception

parse

List<? extends WrappedServiceMetadata> parse(URL blueprintToParse)
                                             throws Exception
Parse a blueprint xml files and extract the parsed ServiceMetadata objects

Parameters:
blueprintToParse - URL to blueprint xml file
Returns:
List of (wrapped) ServiceMetadata objects
Throws:
Exception

parse

List<? extends WrappedServiceMetadata> parse(InputStream blueprintToParse)
                                             throws Exception
Parse an InputStream containing blueprint xml and extract the parsed ServiceMetadata objects

Parameters:
blueprintToParse - InputStream containing blueprint xml data. The caller is responsible for closing the stream afterwards.
Returns:
List of (wrapped) ServiceMetadata objects
Throws:
Exception

parseAllServiceElements

ParsedServiceElements parseAllServiceElements(InputStream blueprintToParse)
                                              throws Exception
Parse an InputStream containing blueprint xml and extract Service, Reference and RefList elements.

Returns:
All parsed Service, Reference and RefList elements
Throws:
Exception


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.