Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Aug 10th, 2010  |  syntax: None  |  size: 0.60 KB  |  views: 79  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. }