Advertisement
Guest User

OSGi Hello World Bundle

a guest
Sep 16th, 2014
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.60 KB | None | 0 0
  1. package Helloworld;
  2.  
  3. import org.osgi.framework.BundleActivator;
  4. import org.osgi.framework.BundleContext;
  5.  
  6. public class Activator implements BundleActivator {
  7.  
  8.   /* (non-Javadoc)
  9.    * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
  10.    */
  11.   public void start(BundleContext context) throws Exception {
  12.       System.out.println("Hello World!");
  13.   }
  14.  
  15.   /* (non-Javadoc)
  16.    * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
  17.    */
  18.   public void stop(BundleContext context) throws Exception {
  19.       System.out.println("Goodbye World!");
  20.   }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement