What is the role of activator class in eclipse plugin ?
An Activator class is a Java class that controls the life cycle of a plug-in. This class triggers the actions on startup and shutdown, which makes an Activator the best place to allocate and release the resources that a plug-in uses.
Interface Activator The activator initiates the execution of activation groups as necessary. For example, if an activation group for a specific group identifier is not already executing, the activator initiates the execution of a VM for the group.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With