Class DummyConfigurationAdmin.DummyConfiguration

  • All Implemented Interfaces:
    org.osgi.service.cm.Configuration
    Enclosing class:
    DummyConfigurationAdmin

    public static class DummyConfigurationAdmin.DummyConfiguration
    extends java.lang.Object
    implements org.osgi.service.cm.Configuration
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.osgi.service.cm.Configuration

        org.osgi.service.cm.Configuration.ConfigurationAttribute
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addAttributes​(org.osgi.service.cm.Configuration.ConfigurationAttribute... attrs)  
      void addProperty​(java.lang.String key, java.lang.Object value)
      Adds a configuration property to this DummyConfigurationAdmin.DummyConfiguration.
      void delete()  
      java.util.Set<org.osgi.service.cm.Configuration.ConfigurationAttribute> getAttributes()  
      java.lang.String getBundleLocation()  
      long getChangeCount()  
      java.lang.String getFactoryPid()  
      java.lang.String getPid()  
      java.util.Dictionary<java.lang.String,​java.lang.Object> getProcessedProperties​(org.osgi.framework.ServiceReference<?> reference)  
      java.util.Dictionary<java.lang.String,​java.lang.Object> getProperties()  
      void removeAttributes​(org.osgi.service.cm.Configuration.ConfigurationAttribute... attrs)  
      void setBundleLocation​(java.lang.String location)  
      void update()  
      void update​(java.util.Dictionary<java.lang.String,​?> properties)  
      boolean updateIfDifferent​(java.util.Dictionary<java.lang.String,​?> properties)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.osgi.service.cm.Configuration

        equals, hashCode
    • Constructor Detail

      • DummyConfiguration

        public DummyConfiguration()
    • Method Detail

      • getPid

        public java.lang.String getPid()
        Specified by:
        getPid in interface org.osgi.service.cm.Configuration
      • getProperties

        public java.util.Dictionary<java.lang.String,​java.lang.Object> getProperties()
        Specified by:
        getProperties in interface org.osgi.service.cm.Configuration
      • addProperty

        public void addProperty​(java.lang.String key,
                                java.lang.Object value)
        Adds a configuration property to this DummyConfigurationAdmin.DummyConfiguration.
        Parameters:
        key - the property key
        value - the property value
      • update

        public void update​(java.util.Dictionary<java.lang.String,​?> properties)
                    throws java.io.IOException
        Specified by:
        update in interface org.osgi.service.cm.Configuration
        Throws:
        java.io.IOException
      • update

        public void update()
                    throws java.io.IOException
        Specified by:
        update in interface org.osgi.service.cm.Configuration
        Throws:
        java.io.IOException
      • getFactoryPid

        public java.lang.String getFactoryPid()
        Specified by:
        getFactoryPid in interface org.osgi.service.cm.Configuration
      • setBundleLocation

        public void setBundleLocation​(java.lang.String location)
        Specified by:
        setBundleLocation in interface org.osgi.service.cm.Configuration
      • getBundleLocation

        public java.lang.String getBundleLocation()
        Specified by:
        getBundleLocation in interface org.osgi.service.cm.Configuration
      • getChangeCount

        public long getChangeCount()
        Specified by:
        getChangeCount in interface org.osgi.service.cm.Configuration
      • getProcessedProperties

        public java.util.Dictionary<java.lang.String,​java.lang.Object> getProcessedProperties​(org.osgi.framework.ServiceReference<?> reference)
        Specified by:
        getProcessedProperties in interface org.osgi.service.cm.Configuration
      • updateIfDifferent

        public boolean updateIfDifferent​(java.util.Dictionary<java.lang.String,​?> properties)
                                  throws java.io.IOException
        Specified by:
        updateIfDifferent in interface org.osgi.service.cm.Configuration
        Throws:
        java.io.IOException
      • addAttributes

        public void addAttributes​(org.osgi.service.cm.Configuration.ConfigurationAttribute... attrs)
                           throws java.io.IOException
        Specified by:
        addAttributes in interface org.osgi.service.cm.Configuration
        Throws:
        java.io.IOException
      • getAttributes

        public java.util.Set<org.osgi.service.cm.Configuration.ConfigurationAttribute> getAttributes()
        Specified by:
        getAttributes in interface org.osgi.service.cm.Configuration
      • removeAttributes

        public void removeAttributes​(org.osgi.service.cm.Configuration.ConfigurationAttribute... attrs)
                              throws java.io.IOException
        Specified by:
        removeAttributes in interface org.osgi.service.cm.Configuration
        Throws:
        java.io.IOException
      • delete

        public void delete()
                    throws java.io.IOException
        Specified by:
        delete in interface org.osgi.service.cm.Configuration
        Throws:
        java.io.IOException