public class OsgiInstanceConfig extends Object implements InstanceConfig
Allows saving and restoring the OSGiConfig to be used before and after altering OSGi configurations for tests
See InstanceConfig
| Modifier and Type | Field and Description |
|---|---|
protected int |
waitCount
Deprecated.
|
| Constructor and Description |
|---|
OsgiInstanceConfig(T client,
String configPID) |
| Modifier and Type | Method and Description |
|---|---|
InstanceConfig |
restore()
Restore the current OSGi configuration for the PID defined in the constructor
|
InstanceConfig |
save()
Save the current OSGi configuration for the PID defined in the constructor
|
@Deprecated protected int waitCount
public OsgiInstanceConfig(T client,
String configPID)
throws ClientException,
InstanceConfigException,
InterruptedException
T - The type of the Granite Clientclient - The Granite Client to be used internallyconfigPID - The PID for the OSGi configurationClientException - if the client cannot be initializedInstanceConfigException - if the config cannot be savedInterruptedExceptionpublic InstanceConfig save() throws InstanceConfigException, InterruptedException
save in interface InstanceConfigInstanceConfigException - if the config cannot be savedInterruptedExceptionpublic InstanceConfig restore() throws InstanceConfigException, InterruptedException
restore in interface InstanceConfigInstanceConfigException - if the config cannot be restoredInterruptedExceptionCopyright © 2007–2017 The Apache Software Foundation. All rights reserved.