Interface IManagersFactory
Interface for factory which creates instances of manager objects
Namespace: BuildSystem.ManagersFactory
Assembly: BuildSystem.ManagerObject.Interfaces.dll
Syntax
public interface IManagersFactory
Properties
Logger
Logging object
Declaration
ILogger? Logger { get; }
Property Value
Type | Description |
---|---|
ILogger |
Names
Accordance between specified object type + variant and object name
Declaration
ListManagerNameForVariant Names { get; set; }
Property Value
Type | Description |
---|---|
ListManagerNameForVariant |
Suffixes
List of possible suffixes when calling creating objects methods. We can search for "cleaner" and then for "cleaner_delphi". It is important that first of all we search with suffixes and only then without them
Declaration
Queue<string> Suffixes { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.Queue<><string> |
VariantList
List of possible values for manager objects. Each manager object has its own configuration depending on this variant
Declaration
VariantList VariantList { get; }
Property Value
Type | Description |
---|---|
VariantList |
Methods
AddTemplate(IManagerProp)
Save object in own dictionary so later it can be used to create IManagerProp or IManager object
Declaration
void AddTemplate(IManagerProp managerProp)
Parameters
Type | Name | Description |
---|---|---|
IManagerProp | managerProp | Existing instance of properties |
Clone()
Create clone of current object
Declaration
IManagersFactory Clone()
Returns
Type | Description |
---|---|
IManagersFactory |
CreateManager<T>(string, string)
Create IManager object when you know its unique ident and variant of properties
Declaration
T? CreateManager<T>(string propName, string variantName) where T : IManager
Parameters
Type | Name | Description |
---|---|---|
string | propName | Unique ident of prop |
string | variantName | Group of settings |
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T |
CreateManagerForType<T>(string, string)
Create IManager object when you have group and variant of object
Declaration
T? CreateManagerForType<T>(string objectType, string variantName) where T : IManager
Parameters
Type | Name | Description |
---|---|---|
string | objectType | Name of group |
string | variantName | Group of settings |
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T |
CreateProp<T>(string, string)
Create IManagerProp object when you know its unique ident and variant of properties
Declaration
T? CreateProp<T>(string propName, string variantName) where T : IManagerProp
Parameters
Type | Name | Description |
---|---|---|
string | propName | Unique ident of prop |
string | variantName | Group of settings |
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T |
CreatePropForType<T>(string, string)
Create IManagerProp object when you have group and variant of object
Declaration
T? CreatePropForType<T>(string objectType, string variantName) where T : IManagerProp
Parameters
Type | Name | Description |
---|---|---|
string | objectType | Name of group |
string | variantName | Group of settings |
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T |
GetPropName(string, string)
Analyze list of objects - find necessary prop object according to variant
Declaration
string? GetPropName(string objectName, string variantName)
Parameters
Type | Name | Description |
---|---|---|
string | objectName | Type of manager object |
string | variantName | Name of variant |
Returns
Type | Description |
---|---|
string |