Class Activator

java.lang.Object
net.solarnetwork.external.indriya.osgi.Activator
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class Activator extends Object implements org.osgi.framework.BundleActivator
OSGi bundle activator.

This activator will register multiple MeasurementServiceProvider services started for the following providers, with ranking equal to each providers's ServiceProvider.getPriority() value and a service property service.name set to the value as shown:

  1. UCUM - UCUMServiceProvider
  2. Common - CommonServiceProvider
  3. SI - SIServiceProvider
  4. Unicode - UnicodeServiceProvider
  5. Default - DefaultServiceProvider
Version:
1.1
Author:
matt
  • Constructor Details

    • Activator

      public Activator()
  • Method Details

    • start

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

      public void stop(org.osgi.framework.BundleContext bundleContext) throws Exception
      Specified by:
      stop in interface org.osgi.framework.BundleActivator
      Throws:
      Exception