Class OsgiInstanceConfig

  • All Implemented Interfaces:
    InstanceConfig

    public class OsgiInstanceConfig
    extends java.lang.Object
    implements InstanceConfig

    Allows saving and restoring the OSGiConfig to be used before and after altering OSGi configurations for tests

    See InstanceConfig

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int waitCount
      Deprecated.
    • Constructor Summary

      Constructors 
      Constructor Description
      OsgiInstanceConfig​(T client, java.lang.String configPID)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • waitCount

        @Deprecated
        protected int waitCount
        Deprecated.
    • Constructor Detail

      • OsgiInstanceConfig

        public OsgiInstanceConfig​(T client,
                                  java.lang.String configPID)
                           throws ClientException,
                                  InstanceConfigException,
                                  java.lang.InterruptedException
        Type Parameters:
        T - The type of the Granite Client
        Parameters:
        client - The Granite Client to be used internally
        configPID - The PID for the OSGi configuration
        Throws:
        ClientException - if the client cannot be initialized
        InstanceConfigException - if the config cannot be saved
        java.lang.InterruptedException - if interrupted