Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
52 lines (44 sloc) 1.12 KB
//
// Factory.cs: Declares finder and formatter policy factories
//
// Author: Jonathan Pryor (jonpryor@vt.edu)
//
// (C) 2002 Jonathan Pryor
//
using System;
using System.Collections;
using System.Diagnostics;
using System.Text;
using Mono.TypeReflector.Displayers;
using Mono.TypeReflector.Finders;
using Mono.TypeReflector.Formatters;
namespace Mono.TypeReflector
{
public sealed class Factories
{
public sealed class FinderTypeFactory : TypeFactory
{
public new INodeFinder Create (object key)
{
return (INodeFinder) base.Create (key);
}
}
public sealed class FormatterTypeFactory : TypeFactory
{
public new INodeFormatter Create (object key)
{
return (INodeFormatter) base.Create (key);
}
}
public sealed class DisplayerTypeFactory : TypeFactory
{
public new ITypeDisplayer Create (object key)
{
return (ITypeDisplayer) base.Create (key);
}
}
public static FinderTypeFactory Finder = new FinderTypeFactory ();
public static FormatterTypeFactory Formatter = new FormatterTypeFactory ();
public static DisplayerTypeFactory Displayer = new DisplayerTypeFactory ();
}
}