org.apache.aries.blueprint.container
Class ParserServiceImpl

java.lang.Object
  extended by org.apache.aries.blueprint.container.ParserServiceImpl
All Implemented Interfaces:
ParserService

public class ParserServiceImpl
extends Object
implements ParserService


Constructor Summary
ParserServiceImpl(NamespaceHandlerRegistry nhr)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParserServiceImpl

public ParserServiceImpl(NamespaceHandlerRegistry nhr)
Method Detail

parse

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

Specified by:
parse in interface ParserService
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

public org.apache.aries.blueprint.ComponentDefinitionRegistry parse(URL url,
                                                                    org.osgi.framework.Bundle clientBundle,
                                                                    boolean validate)
                                                             throws Exception
Description copied from interface: ParserService
Parse blueprint xml referred to by a single URL.

Specified by:
parse in interface ParserService
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

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

Specified by:
parse in interface ParserService
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

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

Specified by:
parse in interface ParserService
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

parse

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

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

parse

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

Specified by:
parse in interface ParserService
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


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