org.apache.felix.example.servicebased.triangle
Class Activator
java.lang.Object
org.apache.felix.example.servicebased.triangle.Activator
- All Implemented Interfaces:
- BundleActivator
public class Activator
- extends Object
- implements BundleActivator
This class implements a simple bundle activator for the triangle
SimpleShape service. This activator simply creates an instance
of the triangle 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.Triangle
This inner class implements the triangle SimpleShape service. |
Method Summary |
void |
start(BundleContext context)
Implements the BundleActivator.start() method, which
registers the triangle SimpleShape service. |
void |
stop(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 |
Activator
public Activator()
start
public void start(BundleContext context)
- Implements the BundleActivator.start() method, which
registers the triangle SimpleShape service.
- Specified by:
start
in interface BundleActivator
- Parameters:
context
- The context for the bundle.
stop
public void stop(BundleContext context)
- Implements the BundleActivator.start() method, which
does nothing.
- Specified by:
stop
in interface BundleActivator
- Parameters:
context
- The context for the bundle.
Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.