public class

DefaultExamReactor

extends Object
implements ExamReactor
java.lang.Object
   ↳ org.ops4j.pax.exam.spi.DefaultExamReactor

Class Overview

Reactor decouples org.ops4j.pax.exam.TestContainer state from the observer. It is also in control to map probes to their configurations or vice versa. In essence, this implements the Container re-start/re-use policy topic by collecting relevant tests and configurations and passing them to a (user selected factory (see stage()).

Summary

Public Constructors
DefaultExamReactor(ExamSystem system, TestContainerFactory factory)
Public Methods
synchronized void addConfiguration(Option[] configuration)
Add the Configuration that contribute to desired container(s) you will get after calling stage(StagedExamReactorFactory).
synchronized void addProbe(TestProbeProvider addTest)
Add the probe that contribute to desired container(s) you will get after calling stage(StagedExamReactorFactory).
synchronized StagedExamReactor stage(StagedExamReactorFactory factory)
Last thing you parseForTests on the reactor usually.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.ops4j.pax.exam.spi.ExamReactor

Public Constructors

public DefaultExamReactor (ExamSystem system, TestContainerFactory factory)

Public Methods

public synchronized void addConfiguration (Option[] configuration)

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

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

public synchronized 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 synchronized 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