org.apache.felix.example.servicebased.circle
Class Activator

java.lang.Object
  extended by org.apache.felix.example.servicebased.circle.Activator
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class Activator
extends java.lang.Object
implements org.osgi.framework.BundleActivator

This class implements a simple bundle activator for the circle SimpleShape service. This activator simply creates an instance of the circle service object and registers it with the service registry along with the service properties indicating the service's name and icon.


Nested Class Summary
 class Activator.Circle
          This inner class implements the circle SimpleShape service.
 
Constructor Summary
Activator()
           
 
Method Summary
 void start(org.osgi.framework.BundleContext context)
          Implements the BundleActivator.start() method, which registers the circle SimpleShape service.
 void stop(org.osgi.framework.BundleContext context)
          Implements the BundleActivator.start() method, which does nothing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Activator

public Activator()
Method Detail

start

public void start(org.osgi.framework.BundleContext context)
Implements the BundleActivator.start() method, which registers the circle SimpleShape service.

Specified by:
start in interface org.osgi.framework.BundleActivator
Parameters:
context - The context for the bundle.

stop

public void stop(org.osgi.framework.BundleContext context)
Implements the BundleActivator.start() method, which does nothing.

Specified by:
stop in interface org.osgi.framework.BundleActivator
Parameters:
context - The context for the bundle.