Class TestBundle
- java.lang.Object
-
- org.codehaus.cargo.sample.testdata.bundle.TestBundle
-
- All Implemented Interfaces:
org.osgi.framework.BundleActivator
public class TestBundle extends Object implements org.osgi.framework.BundleActivator
Sample test OSGi bundle.
-
-
Constructor Summary
Constructors Constructor Description TestBundle()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidstart(org.osgi.framework.BundleContext bundleContext)Starts the bundle, will write aHello, Worldtext.voidstop(org.osgi.framework.BundleContext bundleContext)Stops the bundle, will write aGoodbye, Worldtext.
-
-
-
Method Detail
-
start
public void start(org.osgi.framework.BundleContext bundleContext) throws ExceptionStarts the bundle, will write aHello, Worldtext.- Specified by:
startin interfaceorg.osgi.framework.BundleActivator- Parameters:
bundleContext- OSGi bundle context.- Throws:
Exception- If anything goes wrong.
-
-