Changeset 2475 for branches/PluginInfrastructure Refactoring/HeuristicLab.PluginInfrastructure/Attributes
- Timestamp:
- 11/10/09 16:52:52 (15 years ago)
- Location:
- branches/PluginInfrastructure Refactoring/HeuristicLab.PluginInfrastructure/Attributes
- Files:
-
- 2 added
- 4 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/PluginInfrastructure Refactoring/HeuristicLab.PluginInfrastructure/Attributes/AssemblyBuildDateAttribute.cs
r2472 r2475 27 27 namespace HeuristicLab.PluginInfrastructure { 28 28 /// <summary> 29 /// Attribute of an assembly when it was built.29 /// Build date attribute. Allows to declare the build date of assemblies. 30 30 /// </summary> 31 31 [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = false)] … … 33 33 private DateTime buildDate; 34 34 /// <summary> 35 /// Gets or sets the date when the assembly has been built.35 /// Gets or sets the build date. 36 36 /// </summary> 37 37 public DateTime BuildDate { -
branches/PluginInfrastructure Refactoring/HeuristicLab.PluginInfrastructure/Attributes/PluginDependencyAttribute.cs
r2472 r2475 26 26 namespace HeuristicLab.PluginInfrastructure { 27 27 /// <summary> 28 /// This attribute can be used to specify that an assembly depends on a differentplugin.28 /// This attribute can be used to declare that an plugin depends on a another plugin. 29 29 /// </summary> 30 [AttributeUsage(AttributeTargets.Class, AllowMultiple=true)]31 public sealed class DependencyAttribute : System.Attribute {30 [AttributeUsage(AttributeTargets.Class, AllowMultiple = true)] 31 public sealed class PluginDependencyAttribute : System.Attribute { 32 32 private string dependency; 33 33 34 34 /// <summary> 35 /// Gets or sets the name of the plugin that is needed to load the assembly.35 /// Gets or sets the name of the plugin that is needed to load a plugin. 36 36 /// </summary> 37 37 public string Dependency { … … 41 41 42 42 /// <summary> 43 /// Initializes a new instance of <see cref="DependencyAttribute"/>. 43 /// Initializes a new instance of <see cref="PluginDependencyAttribute"/>. 44 /// <param name="dependency">The name of the plugin that is needed to load a plugin.</param> 44 45 /// </summary> 45 public DependencyAttribute() { 46 public PluginDependencyAttribute(string dependency) { 47 this.dependency = dependency; 46 48 } 47 49 } -
branches/PluginInfrastructure Refactoring/HeuristicLab.PluginInfrastructure/Attributes/PluginDescriptionAttribute.cs
r2472 r2475 26 26 namespace HeuristicLab.PluginInfrastructure { 27 27 /// <summary> 28 /// This attribute can be used to specify meta data for classes.29 /// For example to specify name, version and description of applications orplugins.28 /// This attribute can be used to specify meta data for plugins. 29 /// For example to specify name, version and description of plugins. 30 30 /// </summary> 31 31 [AttributeUsage(AttributeTargets.Class)] 32 public class ClassInfoAttribute : System.Attribute {32 public class PluginDescriptionAttribute : System.Attribute { 33 33 private string name; 34 34 /// <summary> 35 /// Gets or sets the name of the plugin to which the assembly belongs to.35 /// Gets or sets the name of the plugin. 36 36 /// </summary> 37 37 public string Name { … … 58 58 } 59 59 60 private bool autoRestart;61 60 /// <summary> 62 /// Gets or sets the boolean flag whether the plugin should be automatically restarted. 61 /// Initializes a new instance of <see cref="PluginDescriptionAttribute"/>. 62 /// <param name="name">Name of the plugin</param> 63 63 /// </summary> 64 public bool AutoRestart { 65 get { return autoRestart; } 66 set { autoRestart = value; } 64 public PluginDescriptionAttribute(string name) 65 : this(name, "") { 67 66 } 68 67 69 68 /// <summary> 70 /// Initializes a new instance of <see cref="ClassInfoAttribute"/>. 69 /// Initializes a new instance of <see cref="PluginDescriptionAttribute"/>. 70 /// <param name="name">Name of the plugin</param> 71 /// <param name="description">Description of the plugin</param> 71 72 /// </summary> 72 public ClassInfoAttribute() {} 73 public PluginDescriptionAttribute(string name, string description) 74 : this(name, description, "") { 75 } 76 77 /// <summary> 78 /// Initializes a new instance of <see cref="PluginDescriptionAttribute"/>. 79 /// <param name="name">Name of the plugin</param> 80 /// <param name="description">Description of the plugin</param> 81 /// <param name="version">Version string of the plugin</param> 82 /// </summary> 83 public PluginDescriptionAttribute(string name, string description, string version) { 84 this.name = name; 85 this.version = version; 86 this.description = description; 87 } 73 88 } 74 89 } -
branches/PluginInfrastructure Refactoring/HeuristicLab.PluginInfrastructure/Attributes/PluginFileAttribute.cs
r2472 r2475 36 36 37 37 /// <summary> 38 /// Attribute for plugins providing information about their corresponding files. 38 /// PluginFileAttribute can be used to declare which files make up an plugin. 39 /// Multiple files can be associated to an plugin. Each file should be associated to only one plugin. 39 40 /// </summary> 40 [AttributeUsage(AttributeTargets.Class, AllowMultiple =true)]41 [AttributeUsage(AttributeTargets.Class, AllowMultiple = true)] 41 42 public class PluginFileAttribute : System.Attribute { 42 43 private string filename; … … 62 63 /// <summary> 63 64 /// Initializes a new instance of <see cref="PluginFileAttribute"/>. 65 /// <param name="filename">Name of the file</param> 66 /// <param name="type">Type of the file (Assembly, Executable, Data, License)</param> 64 67 /// </summary> 65 public PluginFileAttribute() { } 68 public PluginFileAttribute(string filename, PluginFileType type) { 69 this.filename = filename; 70 this.filetype = type; 71 } 66 72 } 67 73 }
Note: See TracChangeset
for help on using the changeset viewer.