The Plugin Context contains information (state) that is specific to the use of that plugin instance. The plugin context means different things to the plugin and the host.

The host uses a plugin context to:
  • Manage plugin lifetime and initialization.
  • Have a plugin instance specific entry point for the plugin into the host.
  • Maintain service implementation instances specific for this plugin instance.
  • A place to store information (data, state) for each specific plugin instance.
  • Manage the plugin capabilities and settings.

The plugin uses a plugin context to:
  • Access the host services.
  • Register its services for the host to access.

A plugin context is not necessarily one class (instance) or the exact same instance shared among host and plugin. But it is a concept that is logically tied together.

Last edited Sep 28, 2013 at 3:29 PM by obiwanjacobi, version 4