Class OSGiActivator

java.lang.Object
org.apache.sis.internal.system.OSGiActivator
All Implemented Interfaces:
EventListener, org.osgi.framework.BundleActivator, org.osgi.framework.BundleListener

public final class OSGiActivator extends Object implements org.osgi.framework.BundleActivator, org.osgi.framework.BundleListener
Bundle activator for OSGi environment. This class is declared in the maven-bundle-plugin configuration in the sis-utility/pom.xml file. This class should not be used directly.
Since:
0.3
Version:
0.7
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new bundle activator.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    bundleChanged(org.osgi.framework.BundleEvent event)
    Invoked when another module has been installed or un-installed.
    void
    start(org.osgi.framework.BundleContext context)
    Invoked when this bundle is started.
    void
    stop(org.osgi.framework.BundleContext context)
    Invoked when this bundle is stopped.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OSGiActivator

      public OSGiActivator()
      Creates a new bundle activator.
  • Method Details

    • start

      public void start(org.osgi.framework.BundleContext context)
      Invoked when this bundle is started.
      Specified by:
      start in interface org.osgi.framework.BundleActivator
      Parameters:
      context - the execution context of the bundle being started.
    • stop

      public void stop(org.osgi.framework.BundleContext context) throws Exception
      Invoked when this bundle is stopped. This method shutdowns the sis-utility threads.
      Specified by:
      stop in interface org.osgi.framework.BundleActivator
      Parameters:
      context - the execution context of the bundle being stopped.
      Throws:
      Exception - if an error occurred during unregistration of the supervisor MBean or resource disposal.
    • bundleChanged

      public void bundleChanged(org.osgi.framework.BundleEvent event)
      Invoked when another module has been installed or un-installed. This method notifies the Apache SIS library that the classpath may have changed.
      Specified by:
      bundleChanged in interface org.osgi.framework.BundleListener
      Parameters:
      event - the event that describe the life-cycle change.