Class BaseActivator

  • All Implemented Interfaces:
    org.osgi.framework.BundleActivator

    public class BaseActivator
    extends Object
    implements org.osgi.framework.BundleActivator
    Author:
    hengsin
    • Constructor Detail

      • BaseActivator

        public BaseActivator()
        default constructor
    • Method Detail

      • start

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

        public void stop​(org.osgi.framework.BundleContext context)
                  throws Exception
        Specified by:
        stop in interface org.osgi.framework.BundleActivator
        Throws:
        Exception
      • getBundleContext

        public static org.osgi.framework.BundleContext getBundleContext()
        Returns:
        bundle context
      • getServiceTracker

        public static <T> org.osgi.util.tracker.ServiceTracker<T,​T> getServiceTracker​(Class<T> type,
                                                                                            org.osgi.framework.Filter filter)