org.ops4j.pax.runner.provision.internal
Class ProvisionServiceImpl

java.lang.Object
  extended by org.ops4j.pax.runner.provision.internal.ProvisionServiceImpl
All Implemented Interfaces:
ProvisionService

public class ProvisionServiceImpl
extends java.lang.Object
implements ProvisionService

Implementation of Provision Service.

Since:
August 17, 2007
Author:
Alin Dreghiciu
See Also:
ProvisionService

Constructor Summary
ProvisionServiceImpl(org.osgi.framework.BundleContext bundleContext)
          Creates a new provision service implementation.
 
Method Summary
 void addScanner(Scanner scanner, java.lang.String scheme)
          Adds a new scanner.
 void removeScanner(Scanner scanner)
          Removes a scanner.
 InstallableBundles scan(java.lang.String spec)
          Parses the spec and based on the provision scheme from the spec delegates to the right provisioning scheme.
The spec has the syntax:
scheme:scheme_specific_path
where:
* scheme is the scheme to be used
* scheme_specific_path is a scheme specific string
 void setStartLevelService(org.osgi.service.startlevel.StartLevel startLevelService)
          Sets the start level service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProvisionServiceImpl

public ProvisionServiceImpl(org.osgi.framework.BundleContext bundleContext)
Creates a new provision service implementation.

Parameters:
bundleContext - a bundle context
Method Detail

scan

public InstallableBundles scan(java.lang.String spec)
                        throws MalformedSpecificationException,
                               ScannerException
Description copied from interface: ProvisionService
Parses the spec and based on the provision scheme from the spec delegates to the right provisioning scheme.
The spec has the syntax:
scheme:scheme_specific_path
where:
* scheme is the scheme to be used
* scheme_specific_path is a scheme specific string

Specified by:
scan in interface ProvisionService
Parameters:
spec - the provisioning spec
Returns:
a set of installable bundle
Throws:
MalformedSpecificationException - if the scheme is not available or the string could not be parsed
ScannerException - if a scanning process related exception occured
See Also:
ProvisionService.scan(String)

addScanner

public void addScanner(Scanner scanner,
                       java.lang.String scheme)
Adds a new scanner.

Parameters:
scheme - the scheme the scanner handles
scanner - the scanner

removeScanner

public void removeScanner(Scanner scanner)
Removes a scanner.

Parameters:
scanner - the scanner

setStartLevelService

public void setStartLevelService(org.osgi.service.startlevel.StartLevel startLevelService)
Sets the start level service.

Parameters:
startLevelService - a start level service


Copyright © 2008. All Rights Reserved.