Class Activator

java.lang.Object
org.apache.sling.junit.Activator
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class Activator extends Object implements org.osgi.framework.BundleActivator
Used to make our BundleContext available to JUnit classes that need it but have no OSGi context.
  • Constructor Details

    • Activator

      public Activator()
  • Method Details

    • getBundleContext

      public static org.osgi.framework.BundleContext getBundleContext()
    • 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