org.ops4j.pax.runner.scanner.obr.internal
Class ObrScanner
java.lang.Object
org.ops4j.pax.runner.scanner.obr.internal.ObrScanner
- All Implemented Interfaces:
- Scanner
public class ObrScanner
- extends java.lang.Object
- implements Scanner
A scanner that scans plain text file containing bundle references and system properties.
- Since:
- 0.7.0, February 04, 2008
- Author:
- Alin Dreghiciu
|
Constructor Summary |
ObrScanner(org.ops4j.util.property.PropertyResolver propertyResolver,
org.ops4j.pax.runner.scanner.obr.internal.FilterValidator filterValidator)
Creates a new file scanner. |
|
Method Summary |
java.util.List<BundleReference> |
scan(java.lang.String urlSpec)
Reads the bundles from the file specified by the urlSpec. |
void |
setResolver(org.ops4j.util.property.PropertyResolver propertyResolver)
Sets the propertyResolver to use. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObrScanner
public ObrScanner(org.ops4j.util.property.PropertyResolver propertyResolver,
org.ops4j.pax.runner.scanner.obr.internal.FilterValidator filterValidator)
- Creates a new file scanner.
- Parameters:
propertyResolver - a propertyResolver; mandatoryfilterValidator - filter syntax validator
scan
public java.util.List<BundleReference> scan(java.lang.String urlSpec)
throws MalformedSpecificationException,
ScannerException
- Reads the bundles from the file specified by the urlSpec.
- Specified by:
scan in interface Scanner
- Parameters:
urlSpec - url spec to the text file containing the bundle.
- Returns:
- a list of bundle references
- Throws:
MalformedSpecificationException - if the path is malformed
ScannerException - if an exception eccured durring scanning
setResolver
public void setResolver(org.ops4j.util.property.PropertyResolver propertyResolver)
- Sets the propertyResolver to use.
- Parameters:
propertyResolver - a propertyResolver
Copyright © 2008. All Rights Reserved.