org.ops4j.pax.scanner
Interface ProvisionService

All Known Implementing Classes:
ProvisionServiceImpl

public interface ProvisionService

Provision service allow unified provisioning based on provisioning scheme.

Since:
August 17, 2007
Author:
Alin Dreghiciu

Method Summary
 java.util.List<ScannedBundle> 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
 InstallableBundles wrap(java.util.List<ScannedBundle> scannedBundles)
          Wraps a list of bundle refrences as installables..
 

Method Detail

scan

java.util.List<ScannedBundle> scan(java.lang.String spec)
                                   throws MalformedSpecificationException,
                                          ScannerException
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

Parameters:
spec - the provisioning spec
Returns:
a list of bundle refrences
Throws:
MalformedSpecificationException - if the scheme is not available or the string could not be parsed
ScannerException - if a scanning process related exception occured

wrap

InstallableBundles wrap(java.util.List<ScannedBundle> scannedBundles)
Wraps a list of bundle refrences as installables..

Parameters:
scannedBundles - scanned bundles to be wrapped
Returns:
a set of installables


Copyright © 2006-2011 OPS4J - Open Participation Software for Java. All Rights Reserved.