IConfigurableObjectDefinition.cs :  » Inversion-of-Control-Dependency-Injection » Spring.net » Spring » Objects » Factory » Support » C# / CSharp Open Source

Home
C# / CSharp Open Source
1.2.6.4 mono .net core
2.2.6.4 mono core
3.Aspect Oriented Frameworks
4.Bloggers
5.Build Systems
6.Business Application
7.Charting Reporting Tools
8.Chat Servers
9.Code Coverage Tools
10.Content Management Systems CMS
11.CRM ERP
12.Database
13.Development
14.Email
15.Forum
16.Game
17.GIS
18.GUI
19.IDEs
20.Installers Generators
21.Inversion of Control Dependency Injection
22.Issue Tracking
23.Logging Tools
24.Message
25.Mobile
26.Network Clients
27.Network Servers
28.Office
29.PDF
30.Persistence Frameworks
31.Portals
32.Profilers
33.Project Management
34.RSS RDF
35.Rule Engines
36.Script
37.Search Engines
38.Sound Audio
39.Source Control
40.SQL Clients
41.Template Engines
42.Testing
43.UML
44.Web Frameworks
45.Web Service
46.Web Testing
47.Wiki Engines
48.Windows Presentation Foundation
49.Workflows
50.XML Parsers
C# / C Sharp
C# / C Sharp by API
C# / CSharp Tutorial
C# / CSharp Open Source » Inversion of Control Dependency Injection » Spring.net 
Spring.net » Spring » Objects » Factory » Support » IConfigurableObjectDefinition.cs
#region License

/*
 * Copyright  2002-2005 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#endregion

#region Imports

using System;
using Spring.Objects.Factory.Config;

#endregion

namespace Spring.Objects.Factory.Support{
    /// <summary>
    /// Describes a configurable object instance, which has property values,
    /// constructor argument values, and further information supplied by concrete
    /// implementations.
    /// </summary>
    /// <author>Rick Evans</author>
    public interface IConfigurableObjectDefinition : IObjectDefinition
    {
        /// <summary>
        /// Return the property values to be applied to a new instance of the object.
        /// </summary>
        new MutablePropertyValues PropertyValues { get; set; }

        /// <summary>
        /// Return the constructor argument values for this object.
        /// </summary>
        new ConstructorArgumentValues ConstructorArgumentValues { get; set; }
    
        /// <summary>
        /// The method overrides (if any) for this object.
        /// </summary>
        /// <value>
        /// The method overrides (if any) for this object; may be an
        /// empty collection but is guaranteed not to be
        /// <see langword="null"/>.
        /// </value>
        MethodOverrides MethodOverrides { get; set; }

        /// <summary>
        /// Return the event handlers for any events exposed by this object.
        /// </summary>
        new EventValues EventHandlerValues { get; set; }

        /// <summary>
        /// Get or set the role hint for this object definition
        /// </summary>
        new ObjectRole Role { get; set; }

        /// <summary>
        /// Return a description of the resource that this object definition
        /// came from (for the purpose of showing context in case of errors).
        /// </summary>
        new string ResourceDescription { get; set; }

        /// <summary>
        /// Is this object definition "abstract", i.e. not meant to be instantiated
        /// itself but rather just serving as parent for concrete child object
        /// definitions.
        /// </summary>
        /// <value>
        /// <see langword="true"/> if this object definition is "abstract".
        /// </value>
        new bool IsAbstract { get; set; }

        /// <summary>
        /// Returns the <see cref="System.Type"/> of the object definition (if any).
        /// </summary>
        /// <value>
        /// A resolved object <see cref="System.Type"/>.
        /// </value>
        /// <exception cref="ApplicationException">
        /// If the <see cref="System.Type"/> of the object definition is not a
        /// resolved <see cref="System.Type"/> or <see langword="null"/>.
        /// </exception>
        new Type ObjectType { get; set; }

        /// <summary>
        /// Returns the <see cref="System.Type.FullName"/> of the
        /// <see cref="System.Type"/> of the object definition (if any).
        /// </summary>
        new string ObjectTypeName { get; set; }
        
        /// <summary>
        /// Return whether this a <b>Singleton</b>, with a single, shared instance
        /// returned on all calls.
        /// </summary>
        /// <remarks>
        /// <p>
        /// If <see langword="false"/>, an object factory will apply the <b>Prototype</b>
        /// design pattern, with each caller requesting an instance getting an
        /// independent instance. How this is defined will depend on the
        /// object factory implementation. <b>Singletons</b> are the commoner type.
        /// </p>
        /// </remarks>
        new bool IsSingleton { get; set; }

        /// <summary>
        /// Is this object lazily initialized?</summary>
        /// <remarks>
        /// <p>
        /// Only applicable to a singleton object.
        /// </p>
        /// <p>
        /// If <see langword="false"/>, it will get instantiated on startup by object factories
        /// that perform eager initialization of singletons.
        /// </p>
        /// </remarks>
        new bool IsLazyInit { get; set; }

        /// <summary>
        /// The autowire mode as specified in the object definition.
        /// </summary>
        /// <remarks>
        /// <p>
        /// This determines whether any automagical detection and setting of
        /// object references will happen. Default is
        /// <see cref="Spring.Objects.Factory.Config.AutoWiringMode.No"/>,
        /// which means there's no autowire.
        /// </p>
        /// </remarks>
        new AutoWiringMode AutowireMode { get; set; }

        /// <summary>
        /// The dependency check code.
        /// </summary>
        DependencyCheckingMode DependencyCheck { get; set; }

        /// <summary>
        /// The object names that this object depends on.
        /// </summary>
        /// <remarks>
        /// <p>
        /// The object factory will guarantee that these objects get initialized
        /// before.
        /// </p>
        /// <p>
        /// Note that dependencies are normally expressed through object properties
        /// or constructor arguments. This property should just be necessary for
        /// other kinds of dependencies like statics (*ugh*) or database
        /// preparation on startup.
        /// </p>
        /// </remarks>
        new string[] DependsOn { get; set; }

        /// <summary>
        /// The name of the initializer method.
        /// </summary>
        /// <remarks>
        /// <p>
        /// The default is <see langword="null"/>, in which case there is no initializer method.
        /// </p>
        /// </remarks>
        new string InitMethodName { get; set; }

        /// <summary>
        /// Return the name of the destroy method.
        /// </summary>
        /// <remarks>
        /// <p>
        /// The default is <see langword="null"/>, in which case there is no destroy method.
        /// </p>
        /// </remarks>
        new string DestroyMethodName { get; set; }

        /// <summary>
        /// The name of the factory method to use (if any).
        /// </summary>
        /// <remarks>
        /// <p>
        /// This method will be invoked with constructor arguments, or with no
        /// arguments if none are specified. The static method will be invoked on
        /// the specified <see cref="Spring.Objects.Factory.Config.IObjectDefinition.ObjectType"/>.
        /// </p>
        /// </remarks>
        new string FactoryMethodName { get; set; }

        /// <summary>
        /// The name of the factory object to use (if any).
        /// </summary>
        new string FactoryObjectName { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether this instance a candidate for getting autowired into some other
        /// object.
        /// </summary>
        /// <value>
        ///   <c>true</c> if this instance is autowire candidate; otherwise, <c>false</c>.
        /// </value>
        new bool IsAutowireCandidate { get; set; }
    }
}
www.java2v.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.