Class ServiceComponentRuntimeImpl

  • All Implemented Interfaces:
    EventListener, org.osgi.framework.BundleListener, org.osgi.framework.ServiceListener, org.osgi.service.component.runtime.ServiceComponentRuntime

    public class ServiceComponentRuntimeImpl
    extends Object
    implements org.osgi.service.component.runtime.ServiceComponentRuntime, org.osgi.framework.ServiceListener, org.osgi.framework.BundleListener
    • Constructor Detail

      • ServiceComponentRuntimeImpl

        public ServiceComponentRuntimeImpl​(org.osgi.framework.BundleContext context,
                                           org.apache.felix.scr.impl.ComponentRegistry componentRegistry)
    • Method Detail

      • getComponentDescriptionDTOs

        public Collection<org.osgi.service.component.runtime.dto.ComponentDescriptionDTO> getComponentDescriptionDTOs​(org.osgi.framework.Bundle... bundles)
        Specified by:
        getComponentDescriptionDTOs in interface org.osgi.service.component.runtime.ServiceComponentRuntime
        See Also:
        ServiceComponentRuntime.getComponentDescriptionDTOs(org.osgi.framework.Bundle[])
      • getComponentDescriptionDTO

        public org.osgi.service.component.runtime.dto.ComponentDescriptionDTO getComponentDescriptionDTO​(org.osgi.framework.Bundle bundle,
                                                                                                         String name)
        Specified by:
        getComponentDescriptionDTO in interface org.osgi.service.component.runtime.ServiceComponentRuntime
        See Also:
        ServiceComponentRuntime.getComponentDescriptionDTO(org.osgi.framework.Bundle, java.lang.String)
      • getComponentConfigurationDTOs

        public Collection<org.osgi.service.component.runtime.dto.ComponentConfigurationDTO> getComponentConfigurationDTOs​(org.osgi.service.component.runtime.dto.ComponentDescriptionDTO description)
        Specified by:
        getComponentConfigurationDTOs in interface org.osgi.service.component.runtime.ServiceComponentRuntime
        See Also:
        ServiceComponentRuntime.getComponentConfigurationDTOs(org.osgi.service.component.runtime.dto.ComponentDescriptionDTO)
      • isComponentEnabled

        public boolean isComponentEnabled​(org.osgi.service.component.runtime.dto.ComponentDescriptionDTO description)
        Specified by:
        isComponentEnabled in interface org.osgi.service.component.runtime.ServiceComponentRuntime
        See Also:
        ServiceComponentRuntime.isComponentEnabled(org.osgi.service.component.runtime.dto.ComponentDescriptionDTO)
      • enableComponent

        public org.osgi.util.promise.Promise<Void> enableComponent​(org.osgi.service.component.runtime.dto.ComponentDescriptionDTO description)
        Specified by:
        enableComponent in interface org.osgi.service.component.runtime.ServiceComponentRuntime
        See Also:
        ServiceComponentRuntime.enableComponent(org.osgi.service.component.runtime.dto.ComponentDescriptionDTO)
      • disableComponent

        public org.osgi.util.promise.Promise<Void> disableComponent​(org.osgi.service.component.runtime.dto.ComponentDescriptionDTO description)
        Specified by:
        disableComponent in interface org.osgi.service.component.runtime.ServiceComponentRuntime
        See Also:
        ServiceComponentRuntime.disableComponent(org.osgi.service.component.runtime.dto.ComponentDescriptionDTO)
      • bundleChanged

        public void bundleChanged​(org.osgi.framework.BundleEvent event)
        Specified by:
        bundleChanged in interface org.osgi.framework.BundleListener
      • serviceChanged

        public void serviceChanged​(org.osgi.framework.ServiceEvent event)
        Specified by:
        serviceChanged in interface org.osgi.framework.ServiceListener