org.ops4j.pax.runner.scanner.pom.internal
Class ParserImpl

java.lang.Object
  extended by org.ops4j.pax.runner.scanner.pom.internal.ParserImpl
All Implemented Interfaces:
Parser

public class ParserImpl
extends java.lang.Object
implements Parser

Implementation of parser.

Since:
September 17, 2007
Author:
Alin Dreghiciu

Constructor Summary
ParserImpl(java.lang.String path)
          Creates a new protocol parser.
 
Method Summary
 java.net.URL getPomURL()
          Returns the URL of pom file containing the bundles to be installed.
 java.lang.Integer getStartLevel()
          Returns the start level option.
 java.lang.Boolean shouldStart()
          Returns the start option.
 java.lang.Boolean shouldUpdate()
          Returns the update option.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParserImpl

public ParserImpl(java.lang.String path)
           throws MalformedSpecificationException
Creates a new protocol parser.

Parameters:
path - the path part of the url (without starting scan-pom:)
Throws:
MalformedSpecificationException - if provided path does not comply to expected syntax or an malformed file URL
Method Detail

getPomURL

public java.net.URL getPomURL()
Description copied from interface: Parser
Returns the URL of pom file containing the bundles to be installed.

Specified by:
getPomURL in interface Parser
Returns:
an URL
See Also:
Parser.getPomURL()

getStartLevel

public java.lang.Integer getStartLevel()
Description copied from interface: Parser
Returns the start level option.

Specified by:
getStartLevel in interface Parser
Returns:
the start level option value.
See Also:
Parser.getStartLevel()

shouldStart

public java.lang.Boolean shouldStart()
Description copied from interface: Parser
Returns the start option.

Specified by:
shouldStart in interface Parser
Returns:
the start option value
See Also:
Parser.shouldStart()

shouldUpdate

public java.lang.Boolean shouldUpdate()
Description copied from interface: Parser
Returns the update option.

Specified by:
shouldUpdate in interface Parser
Returns:
the update option value
See Also:
Parser.shouldUpdate()


Copyright © 2008. All Rights Reserved.