public void AddPlugInView(String @namespace, String name, String viewFactoryClass) { var configurationPlugInView = new ConfigurationPlugInView(); configurationPlugInView.Namespace = @namespace; configurationPlugInView.Name = name; configurationPlugInView.FactoryClassName = viewFactoryClass; _plugInViews.AddViews( Collections.SingletonList(configurationPlugInView), Collections.GetEmptyList <ConfigurationPlugInVirtualDataWindow>()); }
private ViewResolutionService CreateService(String[] namespaces, String[] names, String[] classNames) { List <ConfigurationPlugInView> configs = new List <ConfigurationPlugInView>(); for (int i = 0; i < namespaces.Length; i++) { ConfigurationPlugInView config = new ConfigurationPlugInView(); config.Namespace = namespaces[i]; config.Name = names[i]; config.FactoryClassName = classNames[i]; configs.Add(config); } PluggableObjectCollection desc = new PluggableObjectCollection(); desc.AddViews(configs, Collections.GetEmptyList <ConfigurationPlugInVirtualDataWindow>(), SupportEngineImportServiceFactory.Make()); PluggableObjectRegistryImpl registry = new PluggableObjectRegistryImpl(new PluggableObjectCollection[] { desc }); return(new ViewResolutionServiceImpl(registry, null, null)); }