...
Panel |
---|
Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: MyBundle Bundle-SymbolicName: MyBundle Bundle-Version: 1.0.0 Bundle-Activator: mypackage.MyActivator Bundle-ActivationPolicy: lazy Bundle-RequiredExecutionEnvironment: JavaSE-1.6 Import-Package: com.affymetrix.genometryImpl.util, com.affymetrix.igb.osgi.service, org.osgi.framework;version="1.5.0", org.osgi.util.tracker;version="1.4.0" |
(note - there are spaces at the beginning of the extension lines, and a blank line at the end)
Panel |
---|
Wiki Markup |
---|
package mypackage;
import java.util.Properties;
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
import org.osgi.framework.ServiceRegistration;
import com.affymetrix.genometryImpl.util.FloatTransformer;
public class MyActivator implements BundleActivator {
private BundleContext bundleContext;
private ServiceRegistration serviceRegistration;
protected BundleContext getContext() {
return bundleContext;
}
public void start(BundleContext _bundleContext) throws Exception {
bundleContext = _bundleContext;
serviceRegistration = bundleContext.registerService(FloatTransformer.class.getName(), new InverseTransformer(), new Properties());
}
public void stop(BundleContext _bundleContext) throws Exception {
if (serviceRegistration != null) {
serviceRegistration.unregister();
}
bundleContext = null;
}
}
|
|
To create plug-ins using eclipse - a Quick-Start Guide
...