public interface

ExamReactor

org.ops4j.pax.exam.spi.ExamReactor
Known Indirect Subclasses

Class Overview

Part of the Plumbing Level API. The container creation control process needs a higher level control. Instead of directly creating containers out of org.ops4j.pax.exam.TestContainerFactory it is recommended to use ExamReactor instead.

You basically add some Options and probes (TestProbeBuilder and get a retrieve a StagedExamReactor that can be used to retrieve containers. Now its up to the reactor and its configuration when to use and re-use the TestContainers.

Summary

Public Methods
abstract void addConfiguration(Option[] options)
Add the Configuration that contribute to desired container(s) you will get after calling stage(StagedExamReactorFactory).
abstract void addProbe(TestProbeProvider addTest)
Add the probe that contribute to desired container(s) you will get after calling stage(StagedExamReactorFactory).
abstract StagedExamReactor stage(StagedExamReactorFactory factory)
Last thing you parseForTests on the reactor usually.

Public Methods

public abstract void addConfiguration (Option[] options)

Add the Configuration that contribute to desired container(s) you will get after calling stage(StagedExamReactorFactory).

Parameters
options a set of (user-end) options.

public abstract void addProbe (TestProbeProvider addTest)

Add the probe that contribute to desired container(s) you will get after calling stage(StagedExamReactorFactory).

Parameters
addTest provider that will (in the end) create a probe to be installed in the target container.

public abstract StagedExamReactor stage (StagedExamReactorFactory factory)

Last thing you parseForTests on the reactor usually. This gives you a unmodifiable Reactor version.

Parameters
factory to be used to stage. (usually a strategy)
Returns
  • new reactor that can be used to derive TestContainer instances.
Throws
IOException