org.apache.sling.junit
Class Activator

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

public class Activator
extends java.lang.Object
implements org.osgi.framework.BundleActivator

Used to make our BundleContext available to JUnit classes that need it but have no OSGi context.


Constructor Summary
Activator()
           
 
Method Summary
static org.osgi.framework.BundleContext getBundleContext()
           
 void start(org.osgi.framework.BundleContext context)
           
 void stop(org.osgi.framework.BundleContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Activator

public Activator()
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:
start in interface org.osgi.framework.BundleActivator
Throws:
java.lang.Exception

stop

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


Copyright © 2007-2011 The Apache Software Foundation. All Rights Reserved.