| java.lang.Object | |
| ↳ | org.ops4j.pax.exam.options.JarProbeOption |
This option can be used to define the contents of a JAR probe for CDI test containers. When a JAR probe option is present, the test container builds a JAR on the fly, creates a classloader for this JAR and uses this as thread context classloader while the container is running.
Otherwise, when no JAR probe option is present, the CDI test container simply uses the system classloader.
Users should create instances of this class using jarProbe() and then invoke
methods of this class in fluent syntax to configure the JAR probe.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates an empty JAR probe option.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Adds the given classes to the JAR.
| |||||||||||
Returns the classes of this JAR.
| |||||||||||
Returns the META-INF resources.
| |||||||||||
Returns the base name of this JAR.
| |||||||||||
Returns the classpath resources.
| |||||||||||
Adds the given resources from the current class path to the WAR in
META-INF/. | |||||||||||
Sets the base name of this JAR.
| |||||||||||
Adds the given resources from the current class path to the JAR.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Creates an empty JAR probe option. Application code should not invoke this constructor. Use
warProbe() instead.
Adds the given classes to the JAR.
| klass | list of classes |
|---|
this for fluent syntax
Returns the classes of this JAR.
Internal API, do no use in application code.
Returns the META-INF resources.
Internal API, do no use in application code.
Returns the base name of this JAR.
Internal API, do no use in application code.
Returns the classpath resources.
Internal API, do no use in application code.
Adds the given resources from the current class path to the WAR in META-INF/.
this for fluent syntax
Sets the base name of this JAR.
| _name | base name |
|---|
this for fluent syntax
Adds the given resources from the current class path to the JAR.
this for fluent syntax