penguru
penguru

Reputation: 4370

Eclipse plugin activator class

What is the role of activator class in eclipse plugin ?

Upvotes: 5

Views: 3852

Answers (1)

ftl
ftl

Reputation: 3042

The activator class handles the lifecycle of the plug-in and provides access to both the underlying OSGi system (i.e. the service registry etc.) and the content of the plug-in (e.g. image files that are contained in the plug-in).

A common use case of the activator is to register an OSGi service when the plug-in is started and to unregister the service when the plug-in is stopped.

Upvotes: 9

Related Questions