Exemplo n.º 1
0
        /// <summary>
        /// Initializes the modules. May be overwritten in a derived class to use custom
        /// module loading and avoid using an <seealso cref="IModuleLoader"/> and
        /// <seealso cref="IModuleEnumerator"/>.
        /// </summary>
        protected override void InitializeModules()
        {
            SpringModuleCatalog moduleCatalog = (SpringModuleCatalog)springContainer.GetObject("IModuleCatalog");

            moduleCatalog.RefreshModules();

            IModuleManager manager = (IModuleManager)springContainer.GetObject("IModuleManager");

            manager.Run();
        }
 protected override void ConfigureModuleCatalog()
 {
     base.ConfigureModuleCatalog();
     SpringModuleCatalog catalog = new SpringModuleCatalog();
     this.ModuleCatalog = catalog;
 }