- All Known Subinterfaces:
- All Known Implementing Classes:
@ThreadSafe public interface ContextA plugin context is a runtime structure implemented and used by plugins in order to communicate between each other. At first, plugins should register their contexts in the plugin root class constructor. Then, within plugin initialization, it can requests contexts of other plugins. Whether they get the requested context is given by several factors, like the plugins must be interconnected in the abstract schema, and the contexts must be compatible. Each plugin can implement none, one or more contexts. Implementing the same interface multiple times is allowed. A plugin can also extend this context interface (directly or indirectly). Another requirement is to annotate custom context interfaces with
PluginContextannotation. Contexts should be thread-safe, since there's no guarantee in which threads plugins communicate.