Spring.Context.Support.XmlApplicationContext.XmlApplicationContext C# (CSharp) Method

XmlApplicationContext() public method

Initializes a new instance of the XmlApplicationContext class.
public XmlApplicationContext ( Spring.Context.Support.XmlApplicationContextArgs args ) : Spring.Core.IO
args Spring.Context.Support.XmlApplicationContextArgs
return Spring.Core.IO
        public XmlApplicationContext(XmlApplicationContextArgs args)
            : base(args.Name, args.CaseSensitive, args.ParentContext)
        {
            _configurationLocations = args.ConfigurationLocations;
            _configurationResources = args.ConfigurationResources;

            if (args.Refresh)
            {
                bool hasLocations = args.ConfigurationLocations.Length > 0;
                bool hasResources = args.ConfigurationResources.Length > 0;

                if (!hasLocations && !hasResources)
                    throw new ArgumentException("You must provide either or both Configuration Locations and/or Configuration Resources!");

                if (hasLocations || hasResources)
                {
                    Refresh();
                }
            }

        }

Same methods

XmlApplicationContext::XmlApplicationContext ( ) : Spring.Core.IO
XmlApplicationContext::XmlApplicationContext ( IApplicationContext parentContext ) : Spring.Core.IO
XmlApplicationContext::XmlApplicationContext ( bool caseSensitive ) : Spring.Core.IO
XmlApplicationContext::XmlApplicationContext ( bool caseSensitive, IApplicationContext parentContext ) : Spring.Core.IO
XmlApplicationContext::XmlApplicationContext ( bool refresh, string name, bool caseSensitive, IApplicationContext parentContext ) : Spring.Core.IO
XmlApplicationContext::XmlApplicationContext ( bool refresh, string name, bool caseSensitive, IApplicationContext parentContext, string configurationLocations, IResource configurationResources ) : Spring.Core.IO
XmlApplicationContext::XmlApplicationContext ( string name, bool caseSensitive ) : Spring.Core.IO
XmlApplicationContext::XmlApplicationContext ( string name, bool caseSensitive, IApplicationContext parentContext ) : Spring.Core.IO
XmlApplicationContext