public class JarProbeOption extends Object implements Option
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 CoreOptions.jarProbe() and then invoke
methods of this class in fluent syntax to configure the JAR probe.
| Constructor and Description |
|---|
JarProbeOption()
Creates an empty JAR probe option.
|
| Modifier and Type | Method and Description |
|---|---|
JarProbeOption |
classes(Class<?>... klass)
Adds the given classes to the JAR.
|
List<Class<?>> |
getClasses()
Returns the classes of this JAR.
|
List<String> |
getMetaInfResources()
Returns the META-INF resources.
|
String |
getName()
Returns the base name of this JAR.
|
List<String> |
getResources()
Returns the classpath resources.
|
JarProbeOption |
metaInfResource(String resourcePath)
Adds the given resources from the current class path to the WAR in
META-INF/. |
JarProbeOption |
name(String _name)
Sets the base name of this JAR.
|
JarProbeOption |
resources(String... resourcePaths)
Adds the given resources from the current class path to the JAR.
|
public JarProbeOption()
CoreOptions.warProbe() instead.public JarProbeOption name(String _name)
_name - base namethis for fluent syntaxpublic JarProbeOption classes(Class<?>... klass)
klass - list of classesthis for fluent syntaxpublic JarProbeOption resources(String... resourcePaths)
resourcePaths - list of resource paths, relative to the class path rootthis for fluent syntaxpublic JarProbeOption metaInfResource(String resourcePath)
META-INF/.resourcePath - resource path, relative to the class path rootthis for fluent syntaxpublic String getName()
Internal API, do no use in application code.
public List<String> getMetaInfResources()
Internal API, do no use in application code.
public List<String> getResources()
Internal API, do no use in application code.
Copyright © 2006–2021 OPS4J - Open Participation Software for Java. All rights reserved.