Encapsulates arguments to the Spring.Context.Support.WebApplicationContext class.
Inheritance: Spring.Context.Support.AbstractXmlApplicationContextArgs
Esempio n. 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="WebApplicationContext"/> class.
        /// </summary>
        /// <param name="args">The args.</param>
        public WebApplicationContext(WebApplicationContextArgs args)
            : base(args.Name, args.CaseSensitive, args.ParentContext)
        {
            _configurationLocations = args.ConfigurationLocations;
            _configurationResources = args.ConfigurationResources;

            DefaultResourceProtocol = WebUtils.DEFAULT_RESOURCE_PROTOCOL;
            Refresh();

            // remember creation info for debug output
            this._constructionTimeStamp = DateTime.Now;
            this._constructionUrl       = VirtualEnvironment.CurrentVirtualPathAndQuery;
            if (log.IsDebugEnabled)
            {
                log.Debug("created instance " + this.ToString());
            }
        }
 public void Default_CaseSensitivity_isFalse()
 {
     WebApplicationContextArgs args = new WebApplicationContextArgs(string.Empty, null, null, null);
     Assert.False(args.CaseSensitive);
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="WebApplicationContext"/> class.
        /// </summary>
        /// <param name="args">The args.</param>
        public WebApplicationContext(WebApplicationContextArgs args)
            : base(args.Name, args.CaseSensitive, args.ParentContext)
        {
            _configurationLocations = args.ConfigurationLocations;
            _configurationResources = args.ConfigurationResources;

            DefaultResourceProtocol = WebUtils.DEFAULT_RESOURCE_PROTOCOL;
            Refresh();

            // remember creation info for debug output
            this._constructionTimeStamp = DateTime.Now;
            this._constructionUrl = VirtualEnvironment.CurrentVirtualPathAndQuery;
            if (log.IsDebugEnabled)
            {
                log.Debug("created instance " + this.ToString());
            }
        }
        public void Default_CaseSensitivity_isFalse()
        {
            WebApplicationContextArgs args = new WebApplicationContextArgs(string.Empty, null, null, null);

            Assert.False(args.CaseSensitive);
        }