Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse plugin activator class

What is the role of activator class in eclipse plugin ?

like image 464
penguru Avatar asked Aug 28 '09 07:08

penguru


People also ask

What is Activator 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.

What is activator in Java?

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.


1 Answers

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.

like image 178
ftl Avatar answered Oct 19 '22 03:10

ftl