Class DefaultPluginLocator
Implementation of a plug-in locator (IPluginLocator) which loads locates plug-ins within a directory on the local file system and an OpenExchange directory that contains sub-folders with individual plug-ins.
Inheritance
System.Object
DefaultPluginLocator
Namespace: Sdl.Core.PluginFramework
Assembly: Sdl.Core.PluginFramework.dll
Syntax
public sealed class DefaultPluginLocator : Object, IPluginLocator
Constructors
DefaultPluginLocator()
Creates a default plug-in locator, which loads plug-ins from a "Plugins" subfolder of the installation folder and will optionally search in a specified Open Exchange plug-in location.
Declaration
public DefaultPluginLocator()
Properties
SystemPluginsDirectory
Gets the system plug-ins directory.
Declaration
public string SystemPluginsDirectory { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
Dispose()
Disposes the plug-in locator.
Declaration
public void Dispose()
Remarks
This method is called automatically when the owning plug-in registry is disposed.
GetPluginDescriptors()
Returns an array of plug-in descriptors for plug-ins found.
Declaration
public IPluginDescriptor[] GetPluginDescriptors()
Returns
Type | Description |
---|---|
IPluginDescriptor[] | An array of plug-in descriptors. |
Remarks
This locator looks for plug-in manifest files with the extension ".plugin.xml".
Implements
System.IDisposable