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 java.lang.Object
implements ParserService


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

parse

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

parse

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

parse

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

parse

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

parse

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


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