TypeFactory Class

Summary

Comprises all of the loaded, and available, tasks. Use these static methods to register, initialize and create a task.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["TypeFactory"] class Type type-node

Syntax

public sealed class TypeFactory

Properties

Name Value Summary
DataTypeBuilders DataTypeBaseBuilderCollection
Gets the list of loaded NAnt.Core.DataTypeBaseBuilder instances.
static
FilterBuilders FilterBuilderCollection
Gets the list of loaded NAnt.Core.Filters.FilterBuilder instances.
static
TaskBuilders TaskBuilderCollection
Gets the list of loaded NAnt.Core.TaskBuilder instances.
static

Methods

Name Value Summary
CreateDataType(XmlNode, Project) DataTypeBase
Creates the NAnt.Core.DataTypeBase instance.
static
CreateFilter(XmlNode, Element) Filter
static
CreateTask(XmlNode, Project) Task
Creates a new NAnt.Core.Task instance for the given XML and NAnt.Core.Project.
static
ScanAssembly(Assembly, Task) bool
Scans the given assembly for tasks, types, functions and filters.
static
ScanAssembly(string, Task) bool
Scans the given assembly for tasks, types, functions and filters.
static
ScanDir(string, Task, bool) void
Scans the path for any task assemblies and adds them.
static