Skip to content

Commit

Permalink
bug-osgi: added new bundle com.buglabs.bug.ws
Browse files Browse the repository at this point in the history
  • Loading branch information
kgilmer committed Jun 10, 2011
1 parent 25a6d25 commit ea84136
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
9 changes: 9 additions & 0 deletions com.buglabs.bug.ws/META-INF/MANIFEST.MF
@@ -0,0 +1,9 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: BUG Web Services
Bundle-SymbolicName: com.buglabs.bug.ws
Bundle-Version: 1.0.0.qualifier
Bundle-Activator: com.buglabs.bug.ws.Activator
Bundle-Vendor: Bug Labs, Inc.
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Import-Package: org.osgi.framework;version="1.3.0"
4 changes: 4 additions & 0 deletions com.buglabs.bug.ws/build.properties
@@ -0,0 +1,4 @@
source.. = .
output.. = .
bin.includes = META-INF/,\
.
30 changes: 30 additions & 0 deletions com.buglabs.bug.ws/com/buglabs/bug/ws/Activator.java
@@ -0,0 +1,30 @@
package com.buglabs.bug.ws;

import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;

public class Activator implements BundleActivator {

private static BundleContext context;

static BundleContext getContext() {
return context;
}

/*
* (non-Javadoc)
* @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
*/
public void start(BundleContext bundleContext) throws Exception {
Activator.context = bundleContext;
}

/*
* (non-Javadoc)
* @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
*/
public void stop(BundleContext bundleContext) throws Exception {
Activator.context = null;
}

}

0 comments on commit ea84136

Please sign in to comment.