org.ops4j.pax.scanner.bundle.internal
Class BundleScanner

java.lang.Object
  extended by org.ops4j.pax.scanner.bundle.internal.BundleScanner
All Implemented Interfaces:
Scanner

public class BundleScanner
extends java.lang.Object
implements Scanner

A scanner that scans plain text file.

Since:
August 15, 2007
Author:
Alin Dreghiciu

Field Summary
 
Fields inherited from interface org.ops4j.pax.scanner.Scanner
SCHEMA_PROPERTY
 
Constructor Summary
BundleScanner(org.ops4j.util.property.PropertyResolver propertyResolver)
          Creates a new scanner.
 
Method Summary
 java.util.List<ScannedBundle> scan(ProvisionSpec provisionSpec)
          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
 

Constructor Detail

BundleScanner

public BundleScanner(org.ops4j.util.property.PropertyResolver propertyResolver)
Creates a new scanner.

Parameters:
propertyResolver - a propertyResolver; mandatory
Method Detail

scan

public java.util.List<ScannedBundle> scan(ProvisionSpec provisionSpec)
                                   throws MalformedSpecificationException,
                                          ScannerException
Reads the bundles from the file specified by the urlSpec. Based on the path the scanner should return a list of scanned bundles for bundles that should be installed.

Specified by:
scan in interface Scanner
Parameters:
provisionSpec - provisioning specification
Returns:
a list of bundle references
Throws:
MalformedSpecificationException - - If the path is malformed
ScannerException - - If an exception eccured during scanning

setResolver

public void setResolver(org.ops4j.util.property.PropertyResolver propertyResolver)
Sets the propertyResolver to use.

Parameters:
propertyResolver - a propertyResolver


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