BundleActivator

Syntax

public interface BundleActivator

Description

Customizes the starting and stopping of a bundle. BundleActivator is an interface that may be implemented by a bundle programmer that is called when the bundle is started or stopped. A bundle can only specify a single BundleActivator in the manifest.

When a bundle is started or stopped, the BundleActivator is called.

The framework can create instances of the bundle's BundleActivator as required. It is guaranteed, however, that if an instance's start(BundleContext) method executes successfully, that same instance's stop(BundleContext) method will be called when the bundle is to be stopped.

A bundle programmer specifies the BundleActivator through the Bundle-Activator Manifest ...

Get Programming Open Service Gateways with Java Embedded Server™ Technology now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.