org.ops4j.pax.scanner.features.internal
Class FeaturesScanner

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

public class FeaturesScanner
extends java.lang.Object
implements Scanner

A scanner that scans Apache ServiceMix Kernel features files (xml).

Since:
0.18.0, April 01, 2007
Author:
Alin Dreghiciu, Andreas Pieber

Field Summary
 
Fields inherited from interface org.ops4j.pax.scanner.Scanner
SCHEMA_PROPERTY
 
Constructor Summary
FeaturesScanner(org.ops4j.util.property.PropertyResolver propertyResolver)
          Creates a new file 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

FeaturesScanner

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

Parameters:
propertyResolver - a propertyResolver; mandatory
Method Detail

scan

public java.util.List<ScannedBundle> scan(ProvisionSpec provisionSpec)
                                   throws 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:
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.