Package org.apache.sling.junit
Class Activator
- java.lang.Object
-
- org.apache.sling.junit.Activator
-
- All Implemented Interfaces:
org.osgi.framework.BundleActivator
public class Activator extends java.lang.Object implements org.osgi.framework.BundleActivatorUsed to make our BundleContext available to JUnit classes that need it but have no OSGi context.
-
-
Constructor Summary
Constructors Constructor Description Activator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.osgi.framework.BundleContextgetBundleContext()voidstart(org.osgi.framework.BundleContext context)voidstop(org.osgi.framework.BundleContext context)
-
-
-
Method Detail
-
getBundleContext
public static org.osgi.framework.BundleContext getBundleContext()
-
start
public void start(org.osgi.framework.BundleContext context) throws java.lang.Exception- Specified by:
startin interfaceorg.osgi.framework.BundleActivator- Throws:
java.lang.Exception
-
stop
public void stop(org.osgi.framework.BundleContext context) throws java.lang.Exception- Specified by:
stopin interfaceorg.osgi.framework.BundleActivator- Throws:
java.lang.Exception
-
-