public class

DirScannerProvisionOption

extends AbstractProvisionOption<T extends AbstractProvisionOption>
implements Scanner
java.lang.Object
   ↳ org.ops4j.pax.exam.options.AbstractProvisionControl<T extends org.ops4j.pax.exam.options.AbstractProvisionControl>
     ↳ org.ops4j.pax.exam.options.AbstractProvisionOption<T extends org.ops4j.pax.exam.options.AbstractProvisionOption>
       ↳ org.ops4j.pax.exam.options.extra.DirScannerProvisionOption

This class is deprecated.
Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.

Class Overview

Option specifying provision form an Pax Runner Dir scanner.

Summary

Public Constructors
DirScannerProvisionOption(String path)
Constructor.
Public Methods
DirScannerProvisionOption filter(String filter)
Sets the filter to be applied to the scanned file names.
String getURL()
String toString()
Protected Methods
DirScannerProvisionOption itself()
Implemented by sub classes in order to return itself (this) for fluent api usage
[Expand]
Inherited Methods
From class org.ops4j.pax.exam.options.AbstractProvisionControl
From class java.lang.Object
From interface org.ops4j.pax.exam.options.ProvisionControl
From interface org.ops4j.pax.exam.options.UrlReference

Public Constructors

public DirScannerProvisionOption (String path)

Constructor.

Parameters
path directory to be scanned path (cannot be null or empty)
Throws
IllegalArgumentException - If url is null or empty

Public Methods

public DirScannerProvisionOption filter (String filter)

Sets the filter to be applied to the scanned file names.

Parameters
filter ant style regular expresion to be matched against file names (cannot be null or empty)
Returns
  • itself, for fluent api usage
Throws
IllegalArgumentException - If filter is null or empty

public String getURL ()

public String toString ()

Protected Methods

protected DirScannerProvisionOption itself ()

Implemented by sub classes in order to return itself (this) for fluent api usage

Returns
  • itself