|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ops4j.pax.scanner.internal.ProvisionServiceImpl
public class ProvisionServiceImpl
Implementation of Provision Service.
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. |
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 |
void |
setStartLevelService(org.osgi.service.startlevel.StartLevel startLevelService)
Sets the start level service. |
InstallableBundles |
wrap(java.util.List<ScannedBundle> scannedBundles)
Wraps a list of scanned bundles as installables. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProvisionServiceImpl(org.osgi.framework.BundleContext bundleContext)
bundleContext
- a bundle contextMethod Detail |
---|
public java.util.List<ScannedBundle> scan(java.lang.String spec) throws MalformedSpecificationException, ScannerException
ProvisionService
scan
in interface ProvisionService
spec
- the provisioning spec
MalformedSpecificationException
- if the scheme is not available or the string could not be parsed
ScannerException
- if a scanning process related exception occuredProvisionService.scan(String)
public InstallableBundles wrap(java.util.List<ScannedBundle> scannedBundles)
wrap
in interface ProvisionService
scannedBundles
- scanned bundles to be wrapped
public void addScanner(Scanner scanner, java.lang.String scheme)
scheme
- the scheme the scanner handlesscanner
- the scannerpublic void removeScanner(Scanner scanner)
scanner
- the scannerpublic void setStartLevelService(org.osgi.service.startlevel.StartLevel startLevelService)
startLevelService
- a start level service
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |