Class OsgiInstanceConfig
java.lang.Object
org.apache.sling.testing.clients.osgi.OsgiInstanceConfig
- All Implemented Interfaces:
InstanceConfig
Allows saving and restoring the OSGiConfig to be used before and after altering OSGi configurations for tests
See InstanceConfig
-
Field Details
-
waitCount
Deprecated.
-
-
Constructor Details
-
OsgiInstanceConfig
public OsgiInstanceConfig(T client, String configPID) throws ClientException, InstanceConfigException, InterruptedException - Type Parameters:
T- The type of the Granite Client- Parameters:
client- The Granite Client to be used internallyconfigPID- The PID for the OSGi configuration- Throws:
ClientException- if the client cannot be initializedInstanceConfigException- if the config cannot be savedInterruptedException- if interrupted
-
-
Method Details
-
save
Save the current OSGi configuration for the PID defined in the constructor- Specified by:
savein interfaceInstanceConfig- Returns:
- this
- Throws:
InstanceConfigException- if the config cannot be savedInterruptedException- if interrupted
-
restore
Restore the current OSGi configuration for the PID defined in the constructor- Specified by:
restorein interfaceInstanceConfig- Returns:
- this
- Throws:
InstanceConfigException- if the config cannot be restoredInterruptedException- if interrupted
-