Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/18/09 18:33:30 (14 years ago)
Author:
gkronber
Message:

Worked on core of plugin infrastructure.

  • Collected all classes into a single assembly (HL.PluginInfrastructure)
  • Moved SplashScreen and MainForm from HeuristicLab.exe project into the plugin infrastructure.
  • Introduced namespaces
  • Added strict access modifiers (internal)
  • Fixed most FxCop warnings in plugin infrastructure core.
  • Fixed issues with plugin load/unload events
  • Deleted empty interface IControl

#799

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PluginInfrastructure Refactoring/HeuristicLab.PluginInfrastructure/Attributes/ApplicationAttribute.cs

    r2488 r2504  
    2727  /// <summary>
    2828  /// This attribute can be used to specify meta data for applications.
    29   /// For example to specify name, version and description of applications.
     29  /// For example to specify name and description of applications.
    3030  /// </summary>
    3131  [AttributeUsage(AttributeTargets.Class)]
    32   public class ApplicationAttribute : System.Attribute {
     32  public sealed class ApplicationAttribute : System.Attribute {
    3333    private string name;
    3434    /// <summary>
    35     /// Gets or sets the name of the application.
     35    /// Gets the name of the application.
    3636    /// </summary>
    3737    public string Name {
    3838      get { return name; }
    39       set { name = value; }
    4039    }
    41 
    42     //private string version;
    43     ///// <summary>
    44     ///// Gets or sets the version of the application.
    45     ///// </summary>
    46     //public string Version {
    47     //  get { return version; }
    48     //  set { version = value; }
    49     //}
    5040
    5141    private string description;
    5242    /// <summary>
    53     /// Gets or sets the description of the application.
     43    /// Gets the description of the application.
    5444    /// </summary>
    5545    public string Description {
    5646      get { return description; }
    57       set { description = value; }
    5847    }
    5948
    6049    private bool restartOnErrors;
    6150    /// <summary>
    62     /// Gets or sets the boolean flag whether the plugin should be automatically restarted when it is closed because of an exception (for services).
     51    /// Gets whether the plugin should be automatically restarted when it is closed because of an exception (for services).
    6352    /// </summary>
    6453    public bool RestartOnErrors {
    6554      get { return restartOnErrors; }
    66       set { restartOnErrors = value; }
    6755    }
    6856
     
    7260    /// </summary>
    7361    public ApplicationAttribute(string name)
    74       : this(name, "") {
     62      : this(name, String.Empty) {
    7563    }
    7664
     
    8472    }
    8573
    86     ///// <summary>
    87     ///// Initializes a new instance of <see cref="ApplicationAttribute"/>.
    88     ///// <param name="name">Name of the application</param>
    89     ///// <param name="description">Description of the application</param>
    90     ///// <param name="version">Version string of the application</param>
    91     ///// </summary>
    92     //public ApplicationAttribute(string name, string description, string version)
    93     //  : this(name, description, version, false) {
    94     //}
    95 
    9674    /// <summary>
    9775    /// Initializes a new instance of <see cref="ApplicationAttribute"/>.
     
    10280    /// </summary>
    10381    public ApplicationAttribute(string name, string description, bool restartOnErrors) {
     82      if (name == null) throw new ArgumentNullException("name", "Application name is null.");
     83      if (description == null) throw new ArgumentNullException("description", "Application description is null.");
    10484      this.name = name;
    10585      this.description = description;
Note: See TracChangeset for help on using the changeset viewer.