#region License
/**
* Ingenious MVC : An MVC framework for .NET 2.0
* Copyright (C) 2006, JDP Group
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* Authors: - Kent Boogaart (kentcb@internode.on.net)
* - James Inge
*/
#endregion
using System;
using Ingenious.Mvc.Configuration.Configurators;
using Ingenious.Mvc.Factories;
namespace Ingenious.Mvc.Configuration{
/// <include file='ConfigurationInfo.doc.xml' path='/doc/member[@name="T:ConfigurationInfo"]/*'/>
[Serializable]
public class ConfigurationInfo
{
private IControllerFactory _controllerFactory;
private INavigatorFactory _navigatorFactory;
private IViewFactory _viewFactory;
private IViewManagerFactory _viewManagerFactory;
private ITaskFactory _taskFactory;
private InfoCollection<Id<INavigator>, NavigatorInfo> _navigatorInfos;
private InfoCollection<Id<IView>, ViewInfo> _viewInfos;
/// <include file='ConfigurationInfo.doc.xml' path='/doc/member[@name="P:ControllerFactory"]/*'/>
public IControllerFactory ControllerFactory
{
get
{
if (_controllerFactory == null)
{
_controllerFactory = DefaultControllerFactory.Instance;
}
return _controllerFactory;
}
set
{
_controllerFactory = value;
}
}
/// <include file='ConfigurationInfo.doc.xml' path='/doc/member[@name="P:NavigatorFactory"]/*'/>
public INavigatorFactory NavigatorFactory
{
get
{
if (_navigatorFactory == null)
{
_navigatorFactory = DefaultNavigatorFactory.Instance;
}
return _navigatorFactory;
}
set
{
_navigatorFactory = value;
}
}
/// <include file='ConfigurationInfo.doc.xml' path='/doc/member[@name="P:ViewFactory"]/*'/>
public IViewFactory ViewFactory
{
get
{
if (_viewFactory == null)
{
_viewFactory = DefaultViewFactory.Instance;
}
return _viewFactory;
}
set
{
_viewFactory = value;
}
}
/// <include file='ConfigurationInfo.doc.xml' path='/doc/member[@name="P:ViewManagerFactory"]/*'/>
public IViewManagerFactory ViewManagerFactory
{
get
{
if (_viewManagerFactory == null)
{
_viewManagerFactory = DefaultViewManagerFactory.Instance;
}
return _viewManagerFactory;
}
set
{
_viewManagerFactory = value;
}
}
/// <include file='ConfigurationInfo.doc.xml' path='/doc/member[@name="P:TaskFactory"]/*'/>
public ITaskFactory TaskFactory
{
get
{
if (_taskFactory == null)
{
_taskFactory = DefaultTaskFactory.Instance;
}
return _taskFactory;
}
set
{
_taskFactory = value;
}
}
/// <include file='ConfigurationInfo.doc.xml' path='/doc/member[@name="P:NavigatorInfos"]/*'/>
public InfoCollection<Id<INavigator>, NavigatorInfo> NavigatorInfos
{
get
{
return _navigatorInfos;
}
}
/// <include file='ConfigurationInfo.doc.xml' path='/doc/member[@name="P:ViewInfos"]/*'/>
public InfoCollection<Id<IView>, ViewInfo> ViewInfos
{
get
{
return _viewInfos;
}
}
/// <include file='ConfigurationInfo.doc.xml' path='/doc/member[@name="M:.ctor()"]/*'/>
public ConfigurationInfo()
{
_navigatorInfos = new InfoCollection<Id<INavigator>, NavigatorInfo>();
_viewInfos = new InfoCollection<Id<IView>, ViewInfo>();
}
}
}
|