Class Activator

  • All Implemented Interfaces:
    org.osgi.framework.BundleActivator, org.osgi.util.tracker.ServiceTrackerCustomizer

    public class Activator
    extends Object
    implements org.osgi.framework.BundleActivator, org.osgi.util.tracker.ServiceTrackerCustomizer
    Author:
    Bogdan Stefanescu
    • Field Detail

      • httpServiceTracker

        protected org.osgi.util.tracker.ServiceTracker httpServiceTracker
      • context

        protected org.osgi.framework.BundleContext context
      • pkgAdm

        protected org.osgi.framework.ServiceReference pkgAdm
    • Constructor Detail

      • Activator

        public Activator()
    • Method Detail

      • getInstance

        public static Activator getInstance()
      • start

        public void start​(org.osgi.framework.BundleContext context)
        Specified by:
        start in interface org.osgi.framework.BundleActivator
      • stop

        public void stop​(org.osgi.framework.BundleContext context)
        Specified by:
        stop in interface org.osgi.framework.BundleActivator
      • getContext

        public org.osgi.framework.BundleContext getContext()
      • getPackageAdmin

        public org.osgi.service.packageadmin.PackageAdmin getPackageAdmin()
      • addingService

        public Object addingService​(org.osgi.framework.ServiceReference reference)
        Specified by:
        addingService in interface org.osgi.util.tracker.ServiceTrackerCustomizer
      • removedService

        public void removedService​(org.osgi.framework.ServiceReference reference,
                                   Object service)
        Specified by:
        removedService in interface org.osgi.util.tracker.ServiceTrackerCustomizer
      • modifiedService

        public void modifiedService​(org.osgi.framework.ServiceReference reference,
                                    Object service)
        Specified by:
        modifiedService in interface org.osgi.util.tracker.ServiceTrackerCustomizer