org.apache.aries.blueprint.services
Interface ParserService

All Known Implementing Classes:
ParserServiceImpl

public interface ParserService


Method Summary
 org.apache.aries.blueprint.ComponentDefinitionRegistry parse(InputStream is, org.osgi.framework.Bundle clientBundle)
          Parse a single InputStream containing blueprint xml.
 org.apache.aries.blueprint.ComponentDefinitionRegistry parse(InputStream is, org.osgi.framework.Bundle clientBundle, boolean validate)
          Parse a single InputStream containing blueprint xml.
 org.apache.aries.blueprint.ComponentDefinitionRegistry parse(List<URL> urls, org.osgi.framework.Bundle clientBundle)
          Parse blueprint xml referred to by a list of URLs.
 org.apache.aries.blueprint.ComponentDefinitionRegistry parse(List<URL> urls, org.osgi.framework.Bundle clientBundle, boolean validate)
          Parse blueprint xml referred to by a list of URLs.
 org.apache.aries.blueprint.ComponentDefinitionRegistry parse(URL url, org.osgi.framework.Bundle clientBundle)
          Parse blueprint xml referred to by a single URL.
 org.apache.aries.blueprint.ComponentDefinitionRegistry parse(URL url, org.osgi.framework.Bundle clientBundle, boolean validate)
          Parse blueprint xml referred to by a single URL.
 

Method Detail

parse

org.apache.aries.blueprint.ComponentDefinitionRegistry parse(InputStream is,
                                                             org.osgi.framework.Bundle clientBundle)
                                                             throws Exception
Parse a single InputStream containing blueprint xml. No validation will be performed. The caller is responsible for closing the InputStream afterwards.

Parameters:
is - InputStream containing blueprint xml.
clientBundle - The client's bundle
Returns:
ComponentDefinitionRegistry containing metadata generated by the parser.
Throws:
Exception

parse

org.apache.aries.blueprint.ComponentDefinitionRegistry parse(InputStream is,
                                                             org.osgi.framework.Bundle clientBundle,
                                                             boolean validate)
                                                             throws Exception
Parse a single InputStream containing blueprint xml. The caller is responsible for closing the InputStream afterwards.

Parameters:
is - Input stream containing blueprint xml
clientBundle - The client's bundle
validate - Indicates whether or not to validate the blueprint xml
Returns:
ComponentDefinitionRegistry containing metadata generated by the parser.
Throws:
Exception

parse

org.apache.aries.blueprint.ComponentDefinitionRegistry parse(URL url,
                                                             org.osgi.framework.Bundle clientBundle)
                                                             throws Exception
Parse blueprint xml referred to by a single URL. No validation will be performed.

Parameters:
url - URL reference to the blueprint xml to parse
clientBundle - The client's bundle
Returns:
ComponentDefinitionRegistry containing metadata generated by the parser.
Throws:
Exception

parse

org.apache.aries.blueprint.ComponentDefinitionRegistry parse(URL url,
                                                             org.osgi.framework.Bundle clientBundle,
                                                             boolean validate)
                                                             throws Exception
Parse blueprint xml referred to by a single URL.

Parameters:
url - URL reference to the blueprint xml to parse
clientBundle - The client's bundle
validate - Indicates whether or not to validate the blueprint xml
Returns:
ComponentDefinitionRegistry containing metadata generated by the parser.
Throws:
Exception

parse

org.apache.aries.blueprint.ComponentDefinitionRegistry parse(List<URL> urls,
                                                             org.osgi.framework.Bundle clientBundle)
                                                             throws Exception
Parse blueprint xml referred to by a list of URLs. No validation will be performed.

Parameters:
urls - URL reference to the blueprint xml to parse
clientBundle - The client's bundle
Returns:
ComponentDefinitionRegistry containing metadata generated by the parser.
Throws:
Exception

parse

org.apache.aries.blueprint.ComponentDefinitionRegistry parse(List<URL> urls,
                                                             org.osgi.framework.Bundle clientBundle,
                                                             boolean validate)
                                                             throws Exception
Parse blueprint xml referred to by a list of URLs.

Parameters:
urls - URL reference to the blueprint xml to parse
clientBundle - The client's bundle
validate - Indicates whether or not to validate the blueprint xml
Returns:
ComponentDefinitionRegistry containing metadata generated by the parser.
Throws:
Exception


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