public final class KarafDistributionOption extends Object
| Modifier and Type | Method and Description |
|---|---|
static KarafDistributionConfigurationConsoleOption |
configureConsole()
Returns an option object which can be used to configure the -Dkaraf.startLocalConsole and
-Dkaraf.startRemoteShell options.
|
static KarafDistributionConfigurationSecurityOption |
configureSecurity()
Returns an option object which can be used to configure the security, especially the
MBeanServerBuilder.
|
static org.ops4j.pax.exam.Option |
debugConfiguration()
Activates debugging on the embedded Karaf container using the standard 5005 port and holds
the vm till you've attached the debugger.
|
static org.ops4j.pax.exam.Option |
debugConfiguration(String port,
boolean hold)
Returns an easy option to activate and configure remote debugging for the Karaf container.
|
static org.ops4j.pax.exam.Option |
doNotModifyLogConfiguration()
The karaf pax-logging configuration is typically not a file manipulated very often.
|
static org.ops4j.pax.exam.Option |
editConfigurationFileExtend(ConfigurationPointer configurationPointer,
Object value)
This option allows to extend configurations in each configuration file based on the
karaf.home location.
|
static org.ops4j.pax.exam.Option[] |
editConfigurationFileExtend(String configurationFilePath,
File source,
String... keysToUseFromSource)
This option allows to configure each configuration file based on the karaf.home location.
|
static org.ops4j.pax.exam.Option |
editConfigurationFileExtend(String configurationFilePath,
String key,
Object value)
This option allows to extend configurations in each configuration file based on the
karaf.home location.
|
static org.ops4j.pax.exam.Option |
editConfigurationFilePut(ConfigurationPointer configurationPointer,
Object value)
This option allows to configure each configuration file based on the karaf.home location.
|
static org.ops4j.pax.exam.Option[] |
editConfigurationFilePut(String configurationFilePath,
File source,
String... keysToUseFromSource)
This option allows to configure each configuration file based on the karaf.home location.
|
static org.ops4j.pax.exam.Option |
editConfigurationFilePut(String configurationFilePath,
String key,
Object value)
This option allows to configure each configuration file based on the karaf.home location.
|
static KarafFeaturesOption |
features(String repositoryUrl,
String... features)
Creates a
KarafFeaturesOption. |
static KarafFeaturesOption |
features(org.ops4j.pax.exam.options.UrlReference repositoryUrl,
String... features)
Creates a
KarafFeaturesOption. |
static KarafDistributionBaseConfigurationOption |
karafDistributionConfiguration()
Configures which distribution options to use.
|
static KarafDistributionBaseConfigurationOption |
karafDistributionConfiguration(String frameworkURL,
String name,
String karafVersion)
Configures which distribution options to use.
|
static org.ops4j.pax.exam.Option |
keepRuntimeFolder()
Per default the folder pax-exam is deleting the test directories after a test is over.
|
static LogLevelOption |
logLevel()
A very simple and convinient method to set a specific log level without the need of configure
the specific option itself.
|
static org.ops4j.pax.exam.Option |
logLevel(LogLevelOption.LogLevel logLevel)
A very simple and convinient method to set a specific log level without the need of configure
the specific option itself.
|
static OverrideJUnitBundlesOption |
overrideJUnitBundles()
A convenience method that disables the default Junit deployment.
|
static org.ops4j.pax.exam.Option |
replaceConfigurationFile(String configurationFilePath,
File source)
This option allows to simply replace an entire configuration file with your own one.
|
static org.ops4j.pax.exam.Option |
useOwnExamBundlesStartLevel(int startLevel)
This option allows to configure the start level of the bundles in the exam features
descriptor.
|
static org.ops4j.pax.exam.Option |
useOwnKarafExamSystemConfiguration(String invoker)
Provides an option to configure the internals of the PaxExamKaraf subsystem runner.
|
public static org.ops4j.pax.exam.Option keepRuntimeFolder()
public static org.ops4j.pax.exam.Option useOwnKarafExamSystemConfiguration(String invoker)
invoker - probe invoker namepublic static org.ops4j.pax.exam.Option doNotModifyLogConfiguration()
public static org.ops4j.pax.exam.Option useOwnExamBundlesStartLevel(int startLevel)
startLevel - bundle start levelpublic static KarafDistributionConfigurationConsoleOption configureConsole()
public static KarafDistributionConfigurationSecurityOption configureSecurity()
public static KarafDistributionBaseConfigurationOption karafDistributionConfiguration(String frameworkURL, String name, String karafVersion)
frameworkURL - frameworkURLname - framework namekarafVersion - Karaf versionpublic static KarafDistributionBaseConfigurationOption karafDistributionConfiguration()
public static org.ops4j.pax.exam.Option editConfigurationFilePut(String configurationFilePath, String key, Object value)
If you like to extend an option (e.g. make a=b to a=b,c) please make use of the
KarafDistributionConfigurationFileExtendOption.
configurationFilePath - configuration file pathkey - property keyvalue - property valuepublic static org.ops4j.pax.exam.Option editConfigurationFilePut(ConfigurationPointer configurationPointer, Object value)
If you like to extend an option (e.g. make a=b to a=b,c) please make use of the
KarafDistributionConfigurationFileExtendOption.
configurationPointer - reference to configuration filevalue - new valuepublic static org.ops4j.pax.exam.Option[] editConfigurationFilePut(String configurationFilePath, File source, String... keysToUseFromSource)
configurationFilePath - configuration file pathsource - configuration source filekeysToUseFromSource - configuration keys to be usedpublic static org.ops4j.pax.exam.Option editConfigurationFileExtend(String configurationFilePath, String key, Object value)
If you would like to have add or replace functionality please use the
KarafDistributionConfigurationFilePutOption instead.
configurationFilePath - configuration file pathkey - property keyvalue - property valuepublic static org.ops4j.pax.exam.Option editConfigurationFileExtend(ConfigurationPointer configurationPointer, Object value)
If you would like to have add or replace functionality please use the
KarafDistributionConfigurationFilePutOption instead.
configurationPointer - reference to configuration keyvalue - additional configuration valuepublic static org.ops4j.pax.exam.Option[] editConfigurationFileExtend(String configurationFilePath, File source, String... keysToUseFromSource)
configurationFilePath - configuration file pathsource - property keykeysToUseFromSource - property keys to be usedpublic static org.ops4j.pax.exam.Option replaceConfigurationFile(String configurationFilePath, File source)
configurationFilePath - path to configuration filesource - configuration file replacementpublic static org.ops4j.pax.exam.Option debugConfiguration()
public static org.ops4j.pax.exam.Option logLevel(LogLevelOption.LogLevel logLevel)
logLevel - log levelpublic static LogLevelOption logLevel()
public static org.ops4j.pax.exam.Option debugConfiguration(String port, boolean hold)
port - remote debugger porthold - should the VM wait for the debugger?public static KarafFeaturesOption features(String repositoryUrl, String... features)
KarafFeaturesOption.repositoryUrl - url of features respository to be scannedfeatures - features to be scannedpublic static KarafFeaturesOption features(org.ops4j.pax.exam.options.UrlReference repositoryUrl, String... features)
KarafFeaturesOption.repositoryUrl - url of features respository to be scannedfeatures - features to be scannedpublic static OverrideJUnitBundlesOption overrideJUnitBundles()
Copyright © 2006–2018 OPS4J - Open Participation Software for Java. All rights reserved.