public IBeanDefinitionCollection Create(Type type) { IBeanDefinitionCollection col = new BeanDefinitionCollection(); col.AddComponent(type); return(col); }
public virtual IBeanDefinitionCollection Col() { var moduleRootPath = Path.Join(Directory.GetCurrentDirectory(), ModuleBasePath); var col = new BeanDefinitionCollection(); ModuleCollection.ImportFromFolder(moduleRootPath); foreach (var entry in ModuleCollection) { var startup = entry.Assembly.GetType(entry.ModuleDescriptor.StartupClass); col.AddComponent(startup); } return(col); }