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 savedInterruptedException
- if interruptedpublic InstanceConfig save() throws InstanceConfigException, InterruptedException
save
in interface InstanceConfig
InstanceConfigException
- if the config cannot be savedInterruptedException
- if interruptedpublic InstanceConfig restore() throws InstanceConfigException, InterruptedException
restore
in interface InstanceConfig
InstanceConfigException
- if the config cannot be restoredInterruptedException
- if interruptedCopyright © 2007–2018 The Apache Software Foundation. All rights reserved.