dart-lang/plugin

Name: plugin

Owner: Dart

Description: null

Created: 2015-03-19 18:10:50.0

Updated: 2018-03-25 16:12:36.0

Pushed: 2018-05-24 10:15:05.0

Homepage: https://pub.dartlang.org/packages/plugin

Size: 13

Language: Dart

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

plugin

Support for building plugins in Dart.

This project defines a simple framework for defining plugins. A plugin is the unit of extensibility for a host application.

An extension point represents one way of extending the host application. For example, a file viewer application might define an extension point to allow viewers for new file types to be added to the application.

The host application must provide at least one extension point that plugins can extend. Every extension point must have a unique name associated with it, and should specify the type of the objects that will be accepted as extensions. In the example above, the extension point might require that all extensions implement the interface FileViewer.

Any plugin can define extension points that other plugins can extend. The host application contributes its own extension point(s) by defining a plugin.

An extension is an object that a plugin associates with a particular extension point. To continue the example, a plugin that supports the viewing of .gif files would create an instance of GifFileViewer, a class that implements FileViewer.

The framework in this package then connects the defined extensions with the defined extension points so that the separately contributed plugins can coordinate to accomplish the larger goal.

Features and bugs

Please file feature requests and bugs at the issue tracker.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.