org.apache.aries.blueprint
Interface ParserService

All Known Implementing Classes:
ParserServiceImpl

public interface ParserService


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

Method Detail

parse

ComponentDefinitionRegistry parse(java.io.InputStream is,
                                  org.osgi.framework.Bundle clientBundle)
                                  throws java.lang.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:
java.lang.Exception

parse

ComponentDefinitionRegistry parse(java.io.InputStream is,
                                  org.osgi.framework.Bundle clientBundle,
                                  boolean validate)
                                  throws java.lang.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:
java.lang.Exception

parse

ComponentDefinitionRegistry parse(java.net.URL url,
                                  org.osgi.framework.Bundle clientBundle)
                                  throws java.lang.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:
java.lang.Exception

parse

ComponentDefinitionRegistry parse(java.net.URL url,
                                  org.osgi.framework.Bundle clientBundle,
                                  boolean validate)
                                  throws java.lang.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:
java.lang.Exception

parse

ComponentDefinitionRegistry parse(java.util.List<java.net.URL> urls,
                                  org.osgi.framework.Bundle clientBundle)
                                  throws java.lang.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:
java.lang.Exception

parse

ComponentDefinitionRegistry parse(java.util.List<java.net.URL> urls,
                                  org.osgi.framework.Bundle clientBundle,
                                  boolean validate)
                                  throws java.lang.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:
java.lang.Exception


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