1. package com.test;
  2.  
  3. import org.osgi.framework.BundleActivator;
  4. import org.osgi.framework.BundleContext;
  5.  
  6. public class Activator implements BundleActivator {
  7.  
  8. /*
  9. * (non-Javadoc)
  10. * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
  11. */
  12. public void start(BundleContext context) throws Exception {
  13. System.out.println("Hello World!!");
  14. }
  15.  
  16. /*
  17. * (non-Javadoc)
  18. * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
  19. */
  20. public void stop(BundleContext context) throws Exception {
  21. System.out.println("Goodbye World!!");
  22. }
  23.  
  24. }