Inheritance: MethodInjectingInstantiationStrategy
コード例 #1
0
        /// <summary>
        /// Creates a new instance of the
        /// <see cref="Spring.Objects.Factory.Support.WebObjectFactory"/> class.
        /// </summary>
        /// <param name="contextPath">The virtual path resources will be relative resolved to.</param>
        /// <param name="caseSensitive">Flag specifying whether to make this object factory case sensitive or not.</param>
        /// <param name="parentFactory">
        /// The parent object factory.
        /// </param>
        public WebObjectFactory(string contextPath, bool caseSensitive, IObjectFactory parentFactory)
            : base(caseSensitive, parentFactory)
        {
            this.contextPath            = contextPath;
            this.createObjectDictionary = (caseSensitive)
                                            ? new ObjectDictionaryCreationHandler(CreateCaseSensitiveDictionary)
                                            : new ObjectDictionaryCreationHandler(CreateCaseInsensitiveDictionary);

            InstantiationStrategy = new WebInstantiationStrategy();
        }
コード例 #2
0
        /// <summary>
        /// Creates a new instance of the
        /// <see cref="Spring.Objects.Factory.Support.WebObjectFactory"/> class.
        /// </summary>
        /// <param name="contextPath">The virtual path resources will be relative resolved to.</param>
        /// <param name="caseSensitive">Flag specifying whether to make this object factory case sensitive or not.</param>
        /// <param name="parentFactory">
        /// The parent object factory.
        /// </param>
        public WebObjectFactory(string contextPath, bool caseSensitive, IObjectFactory parentFactory)
            : base(caseSensitive, parentFactory)
        {
            this.contextPath = contextPath;
            this.createObjectDictionary = (caseSensitive)
                                            ? new ObjectDictionaryCreationHandler(CreateCaseSensitiveDictionary)
                                            : new ObjectDictionaryCreationHandler(CreateCaseInsensitiveDictionary);

            InstantiationStrategy = new WebInstantiationStrategy();
        }