Class ConfigurationAdminFactory

java.lang.Object
org.apache.felix.cm.impl.ConfigurationAdminFactory
All Implemented Interfaces:
org.osgi.framework.ServiceFactory<org.osgi.service.cm.ConfigurationAdmin>

class ConfigurationAdminFactory extends Object implements org.osgi.framework.ServiceFactory<org.osgi.service.cm.ConfigurationAdmin>
The ConfigurationAdminFactory is the ServiceFactory registered as the ConfigurationAdmin service responsible to create the real ConfiguratAdmin instances returend to client bundles. Each bundle gets a separate instance.
  • Field Details

  • Constructor Details

  • Method Details

    • getService

      public org.osgi.service.cm.ConfigurationAdmin getService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration<org.osgi.service.cm.ConfigurationAdmin> registration)
      Returns a new instance of the ConfigurationAdminImpl class for the given bundle.
      Specified by:
      getService in interface org.osgi.framework.ServiceFactory<org.osgi.service.cm.ConfigurationAdmin>
    • ungetService

      public void ungetService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration<org.osgi.service.cm.ConfigurationAdmin> registration, org.osgi.service.cm.ConfigurationAdmin service)
      Disposes off the given ConfigurationAdminImpl instance as the given bundle has no use of it any more.
      Specified by:
      ungetService in interface org.osgi.framework.ServiceFactory<org.osgi.service.cm.ConfigurationAdmin>