Changeset 16984 for branches/2924_DotNetCoreMigration/HeuristicLab.PluginInfrastructure/3.3/Interfaces
- Timestamp:
- 05/24/19 12:28:29 (6 years ago)
- Location:
- branches/2924_DotNetCoreMigration/HeuristicLab.PluginInfrastructure/3.3/Interfaces
- Files:
-
- 2 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2924_DotNetCoreMigration/HeuristicLab.PluginInfrastructure/3.3/Interfaces/IApplication.cs
r15973 r16984 38 38 /// </summary> 39 39 void Run(ICommandLineArgument[] args); 40 41 /// <summary> 42 /// This method gets called when a cancellation is invoked. 43 /// </summary> 44 void OnCancel(); 45 46 /// <summary> 47 /// This method gets called when a pause is invoked. 48 /// </summary> 49 void OnPause(); 50 51 /// <summary> 52 /// This method gets called when a resume is invoked. 53 /// </summary> 54 void OnResume(); 40 55 } 41 56 } -
branches/2924_DotNetCoreMigration/HeuristicLab.PluginInfrastructure/3.3/Interfaces/IApplicationManager.cs
r15973 r16984 52 52 /// <returns>An enumerable of instances of the discovered types.</returns> 53 53 IEnumerable<object> GetInstances(Type type); 54 55 /// <summary> 56 /// Discovers a specific type by its name. 57 /// </summary> 58 /// <param name="typeName">Full name of the type.</param> 59 /// <returns>A type or null, if nothing was found.</returns> 60 Type GetType(string typeName); 54 61 55 62 /// <summary> -
branches/2924_DotNetCoreMigration/HeuristicLab.PluginInfrastructure/3.3/Interfaces/IAssemblyLoader.cs
r16859 r16984 2 2 using System.Collections.Generic; 3 3 using System.Reflection; 4 using System.Text;5 4 6 5 namespace HeuristicLab.PluginInfrastructure { 6 /// <summary> 7 /// Interface for an assembly loading mechanism 8 /// </summary> 7 9 public interface IAssemblyLoader { 8 string BasePath { get; set; }9 10 10 /// <summary> 11 11 /// Returns all loaded assemblies. 12 12 /// </summary> 13 13 IEnumerable<Assembly> Assemblies { get; } 14 14 15 /// <summary> 15 16 /// Returns all types. … … 18 19 19 20 /// <summary> 20 /// Returns all assemblies included in BasePath.21 /// Loads all assemblies (.dll/.exe) in the specified path. 21 22 /// </summary> 22 /// <returns></returns> 23 IEnumerable<Assembly> GetReflectionOnlyAssemblies(); 23 /// <param name="basePath">Path to root directory of all assemblies to load.</param> 24 /// <returns>An IEnumerable of assemblies.</returns> 25 IEnumerable<Assembly> LoadAssemblies(string basePath); 24 26 25 27 /// <summary> 26 /// Loads all assembliesm which are given by the assemblyName argument, into the current context.28 /// Loads all specified assemblies. 27 29 /// </summary> 28 /// <param name="assemblyNames"></param> 29 /// <returns>All loaded assemblies.</returns> 30 IEnumerable<Assembly> LoadAssemblies(IEnumerable<AssemblyName> assemblyNames); 31 30 /// <param name="assemblyInfos">Infos for all assemblies to load.</param> 31 /// <returns>An IEnumerable of assemblies.</returns> 32 IEnumerable<Assembly> LoadAssemblies(IEnumerable<AssemblyInfo> assemblyInfos); 32 33 } 33 34 } -
branches/2924_DotNetCoreMigration/HeuristicLab.PluginInfrastructure/3.3/Interfaces/IPluginLoader.cs
r16859 r16984 1 using System; 2 using System.Collections.Generic; 3 using System.Text; 4 using HeuristicLab.PluginInfrastructure; 1 using System.Collections.Generic; 5 2 6 3 namespace HeuristicLab.PluginInfrastructure { 4 /// <summary> 5 /// Interface for a plugin load mechanism. 6 /// </summary> 7 7 public interface IPluginLoader { 8 /// <summary>9 /// Returns all activators found.10 /// </summary>11 IList<IActivator> Activators { get; }12 13 8 /// <summary> 14 9 /// Returns all plugins found. 15 10 /// </summary> 16 I List<IPlugin> Plugins { get; }11 IEnumerable<IPlugin> Plugins { get; } 17 12 18 13 /// <summary> 19 14 /// Returns all Applications found. 20 15 /// </summary> 21 IList<IApplication> Applications { get; } 16 IEnumerable<IApplication> Applications { get; } 17 18 /// <summary> 19 /// Load plugins, definied by the given AssemblyInfos. 20 /// </summary> 21 /// <param name="assemblyInfos">AssemblyInfos for the assemblies, which should be loaded.</param> 22 void LoadPlugins(IEnumerable<AssemblyInfo> assemblyInfos); 23 24 /// <summary> 25 /// Searches for .dll/.exe files and validates them. 26 /// </summary> 27 /// <param name="basePath">Path of the root directory for the assemblies to validate.</param> 28 /// <returns>A IEnumerable of AssemblyInfos, which contains all loadable assemblies. </returns> 29 IEnumerable<AssemblyInfo> Validate(string basePath); 22 30 } 23 31 } -
branches/2924_DotNetCoreMigration/HeuristicLab.PluginInfrastructure/3.3/Interfaces/IRunner.cs
r16859 r16984 1 1 using System; 2 2 using System.Collections.Generic; 3 using System.IO; 3 4 using System.Text; 4 5 5 6 namespace HeuristicLab.PluginInfrastructure { 6 7 /// <summary>8 /// Interface for all runner implementations.9 /// </summary>10 7 public interface IRunner { 11 8 /// <summary> 12 /// Method to start the runner which scans all assemblies in the given basePath argument. 13 /// Additionally, arguments can be specified, which are forwarded to all activators. 9 /// Set this to true, if console output should be disabled. 14 10 /// </summary> 15 /// <param name="basePath"></param> 16 /// <param name="args"></param> 17 void Start(string basePath, string[] args); 11 bool QuietMode { get; set; } 18 12 19 void Stop(); 13 /// <summary> 14 /// Assemblies which the child process needs to load. 15 /// </summary> 16 IEnumerable<AssemblyInfo> AssembliesToLoad { get; set; } 17 18 /// <summary> 19 /// Method to run the runner. 20 /// </summary> 21 void Run(); 20 22 } 21 23 }
Note: See TracChangeset
for help on using the changeset viewer.