Class SequencerActivator

java.lang.Object
org.eclipse.scanning.sequencer.SequencerActivator
All Implemented Interfaces:
IServiceResolver, org.osgi.framework.BundleActivator

public class SequencerActivator extends Object implements org.osgi.framework.BundleActivator, IServiceResolver
  • Constructor Details

    • SequencerActivator

      public SequencerActivator()
  • Method Details

    • start

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

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

      public <T> T getService(Class<T> serviceClass)
      Description copied from interface: IServiceResolver
      Method comparable to getting a service from OSGi without making a dependency on OGSi in this bundle.
      Specified by:
      getService in interface IServiceResolver
      Parameters:
      serviceClass - the class to get the service for
      Returns:
      the service for the given class, or null if no such service exists
    • getService

      public Object getService(String serviceClass)
    • isStarted

      public static boolean isStarted()
    • getInstance

      public static IServiceResolver getInstance()
    • getServices

      public <T> Collection<T> getServices(Class<T> serviceClass) throws org.osgi.framework.InvalidSyntaxException
      Description copied from interface: IServiceResolver
      Try and get all the declaring instances of a given service.
      Specified by:
      getServices in interface IServiceResolver
      Parameters:
      serviceClass - the class to get the services for
      Returns:
      the services for the given class, or an empty collection if no such services exist
      Throws:
      org.osgi.framework.InvalidSyntaxException