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 void
start(org.osgi.framework.BundleContext bundleContext)
Starts the bundle, will write aHello, World
text.void
stop(org.osgi.framework.BundleContext bundleContext)
Stops the bundle, will write aGoodbye, World
text.
-
-
-
Method Detail
-
start
public void start(org.osgi.framework.BundleContext bundleContext) throws Exception
Starts the bundle, will write aHello, World
text.- Specified by:
start
in interfaceorg.osgi.framework.BundleActivator
- Parameters:
bundleContext
- OSGi bundle context.- Throws:
Exception
- If anything goes wrong.
-
-