Class FlavorPlugin
Represents a plugin which provides new flavors and capabilities.
public abstract class FlavorPlugin : Plugin, IEquatable<Descriptor>, IComparable<Descriptor>
- Inheritance
-
FlavorPlugin
- Implements
- Derived
- Inherited Members
Constructors
FlavorPlugin(string, string, string, IList<Capability>, IList<Flavor>, IList<LineageGlueRule>, IList<KeyValuePair<string, Type>>)
Constructs a flavor plugin.
protected FlavorPlugin(string name, string description, string url, IList<Capability> capabilites, IList<Flavor> flavors, IList<LineageGlueRule> glueRules, IList<KeyValuePair<string, Type>> adapterTypes)
Parameters
namestringThe name of this plugin.
descriptionstringA short description for this plugin.
urlstringAn optional URL for a website containing plugin information.
capabilitesIList<Capability>A list of capabilities that the plugin provides.
flavorsIList<Flavor>A list of flavors that the plugin provides.
glueRulesIList<LineageGlueRule>A list of glue rules that the plugin provides.
adapterTypesIList<KeyValuePair<string, Type>>A list of adapter types that the plugin provides.
FlavorPlugin(string, string, string, IList<Capability>, IList<Flavor>, IList<LineageGlueRule>, IList<KeyValuePair<string, Type>>, IList<CustomConfigurationParam>)
Constructs a flavor plugin.
protected FlavorPlugin(string name, string description, string url, IList<Capability> capabilites, IList<Flavor> flavors, IList<LineageGlueRule> glueRules, IList<KeyValuePair<string, Type>> adapterTypes, IList<Configuration.CustomConfigurationParam> configurationParams)
Parameters
namestringThe name of this plugin.
descriptionstringA short description for this plugin.
urlstringAn optional URL for a website containing plugin information.
capabilitesIList<Capability>A list of capabilities that the plugin provides.
flavorsIList<Flavor>A list of flavors that the plugin provides.
glueRulesIList<LineageGlueRule>A list of glue rules that the plugin provides.
adapterTypesIList<KeyValuePair<string, Type>>A list of adapter types that the plugin provides.
configurationParamsIList<Configuration.CustomConfigurationParam>A list of configuration parameters that the plugin provides.
Properties
AdapterTypes
The list of adapter types provided by the plugin.
public IList<KeyValuePair<string, Type>> AdapterTypes { get; }
Property Value
Remarks
This list maps capability names to types that represent adapters for the corresponding capability.
Capabilites
The list of capabilities provided by the plugin.
public IList<Capability> Capabilites { get; }
Property Value
ConfigurationParams
The list of configuration parameters provided by the plugin.
public IList<Configuration.CustomConfigurationParam> ConfigurationParams { get; }
Property Value
Flavors
The list of flavors provided by the plugin.
public IList<Flavor> Flavors { get; }
Property Value
GlueRules
The list of glue rules provided by the plugin.
public IList<LineageGlueRule> GlueRules { get; }
Property Value
PluginControls
Controls that the plugin requires to embed in the hosting application (Spy, Recorder, Wizard, Studio). It is not guaranteed to the plugin that these controls will always be visible in the UI, e.g. users could hide/disable them.
public virtual IList<IPluginControl> PluginControls { get; }
Property Value
RequiredFlavorNames
The list of flavors required as a dependency by the plugin.
public IList<string> RequiredFlavorNames { get; }
Property Value
Methods
Initialize()
Initializes the plugin. This automatically registers all flavors, caps, cap handlers and rules with the ElementEngine.
public override void Initialize()