org.glassfish.fighterfish.sample.osgihttp.helloworld
Class HelloWorldHttpActivator
java.lang.Object
org.glassfish.fighterfish.sample.osgihttp.helloworld.HelloWorldHttpActivator
- All Implemented Interfaces:
- org.osgi.framework.BundleActivator
public class HelloWorldHttpActivator
- extends java.lang.Object
- implements org.osgi.framework.BundleActivator
This activator demonstrates how to use HttpService using a ServiceTracker.
It demonstrates registerReosurce method of HttpService.
The secondary reason for having this activator is that it causes HttpService class to be loaded
which in turn activates osgi-http bundle of GlassFish, which uses lazy activation policy.
- Author:
- Sanjeeb.Sahoo@Oracle.com
|
Method Summary |
void |
start(org.osgi.framework.BundleContext context)
|
void |
stop(org.osgi.framework.BundleContext context)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HelloWorldHttpActivator
public HelloWorldHttpActivator()
start
public void start(org.osgi.framework.BundleContext context)
throws java.lang.Exception
- Specified by:
start in interface org.osgi.framework.BundleActivator
- Throws:
java.lang.Exception
stop
public void stop(org.osgi.framework.BundleContext context)
throws java.lang.Exception
- Specified by:
stop in interface org.osgi.framework.BundleActivator
- Throws:
java.lang.Exception
Copyright © 2013. All Rights Reserved.