Class EMFPlugin.OSGiDelegatingBundleActivator

java.lang.Object
org.eclipse.emf.common.EMFPlugin.OSGiDelegatingBundleActivator
All Implemented Interfaces:
org.osgi.framework.BundleActivator
Direct Known Subclasses:
CommonPlugin.Implementation.Activator
Enclosing class:
EMFPlugin

public abstract static class EMFPlugin.OSGiDelegatingBundleActivator extends Object implements org.osgi.framework.BundleActivator
This is just a bundle activator wrapper for delegating to another bundle activator. It provides a create method for creating the delegate. Any exception thrown during creation of the delegate is ignored, in which case this activator does nothing for start and stop. The idea is to provide a bundle activator that can delegate to an Equinox-dependent bundle activator, but behaves gracefully in a non-Equinox OSGi implementation.
Since:
2.10
  • Constructor Details

    • OSGiDelegatingBundleActivator

      public OSGiDelegatingBundleActivator()
  • Method Details

    • createBundle

      protected abstract org.osgi.framework.BundleActivator createBundle()
    • start

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

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