public DefaultConfigurationContainer(ConfigurationResolver resolver, Instantiator instantiator, DomainObjectContext context, ListenerManager listenerManager, DependencyMetaDataProvider dependencyMetaDataProvider, ProjectAccessListener projectAccessListener, ProjectFinder projectFinder, ConfigurationComponentMetaDataBuilder configurationComponentMetaDataBuilder, FileCollectionFactory fileCollectionFactory, DependencySubstitutionRules globalDependencySubstitutionRules, ComponentIdentifierFactory componentIdentifierFactory, BuildOperationExecutor buildOperationExecutor) { super(Configuration.class, instantiator, new Configuration.Namer()); this.resolver = resolver; this.instantiator = instantiator; this.context = context; this.listenerManager = listenerManager; this.dependencyMetaDataProvider = dependencyMetaDataProvider; this.projectAccessListener = projectAccessListener; this.projectFinder = projectFinder; this.configurationComponentMetaDataBuilder = configurationComponentMetaDataBuilder; this.fileCollectionFactory = fileCollectionFactory; this.globalDependencySubstitutionRules = globalDependencySubstitutionRules; this.componentIdentifierFactory = componentIdentifierFactory; this.buildOperationExecutor = buildOperationExecutor; this.artifactNotationParser = new PublishArtifactNotationParserFactory(instantiator, dependencyMetaDataProvider).create(); }
ConfigurationContainerInternal createConfigurationContainer(Instantiator instantiator, ConfigurationResolver configurationResolver, DomainObjectContext domainObjectContext, ListenerManager listenerManager, DependencyMetaDataProvider metaDataProvider, ProjectAccessListener projectAccessListener, ProjectFinder projectFinder, ConfigurationComponentMetaDataBuilder metaDataBuilder, FileCollectionFactory fileCollectionFactory, GlobalDependencyResolutionRules globalDependencyResolutionRules, ComponentIdentifierFactory componentIdentifierFactory, BuildOperationExecutor buildOperationExecutor) { return instantiator.newInstance(DefaultConfigurationContainer.class, configurationResolver, instantiator, domainObjectContext, listenerManager, metaDataProvider, projectAccessListener, projectFinder, metaDataBuilder, fileCollectionFactory, globalDependencyResolutionRules.getDependencySubstitutionRules(), componentIdentifierFactory, buildOperationExecutor ); }
public DependencyResolutionServices create(FileResolver fileResolver, DependencyMetaDataProvider dependencyMetaDataProvider, ProjectFinder projectFinder, DomainObjectContext domainObjectContext) { DefaultServiceRegistry services = new DefaultServiceRegistry(parent); services.add(FileResolver.class, fileResolver); services.add(DependencyMetaDataProvider.class, dependencyMetaDataProvider); services.add(ProjectFinder.class, projectFinder); services.add(DomainObjectContext.class, domainObjectContext); services.addProvider(new DependencyResolutionScopeServices()); return services.get(DependencyResolutionServices.class); }
public ProjectScopeServices(final ServiceRegistry parent, final ProjectInternal project, Factory<LoggingManagerInternal> loggingManagerInternalFactory) { super(parent); this.project = project; this.loggingManagerInternalFactory = loggingManagerInternalFactory; register(new Action<ServiceRegistration>() { public void execute(ServiceRegistration registration) { registration.add(DomainObjectContext.class, project); parent.get(DependencyManagementServices.class).addDslServices(registration); for (PluginServiceRegistry pluginServiceRegistry : parent.getAll(PluginServiceRegistry.class)) { pluginServiceRegistry.registerProjectServices(registration); } } }); }
public DefaultConfigurationContainer(ConfigurationResolver resolver, Instantiator instantiator, DomainObjectContext context, ListenerManager listenerManager, DependencyMetaDataProvider dependencyMetaDataProvider) { super(Configuration.class, instantiator, new Configuration.Namer()); this.resolver = resolver; this.instantiator = instantiator; this.context = context; this.listenerManager = listenerManager; this.dependencyMetaDataProvider = dependencyMetaDataProvider; }
ConfigurationContainerInternal createConfigurationContainer(Instantiator instantiator, ConfigurationResolver configurationResolver, DomainObjectContext domainObjectContext, ListenerManager listenerManager, DependencyMetaDataProvider metaDataProvider) { return instantiator.newInstance(DefaultConfigurationContainer.class, configurationResolver, instantiator, domainObjectContext, listenerManager, metaDataProvider); }
public ScriptHandler create(ScriptSource scriptSource, ClassLoaderScope classLoaderScope, DomainObjectContext context) { DependencyResolutionServices services = dependencyManagementServices.create(fileResolver, dependencyMetaDataProvider, projectFinder, context); RepositoryHandler repositoryHandler = services.getResolveRepositoryHandler(); ConfigurationContainer configurationContainer = services.getConfigurationContainer(); DependencyHandler dependencyHandler = services.getDependencyHandler(); return new DefaultScriptHandler(scriptSource, repositoryHandler, dependencyHandler, configurationContainer, new ScriptHandlerClassLoaderFactory(scriptSource, classLoaderScope)); }
public ScriptHandlerInternal create(ScriptSource scriptSource, ClassLoaderScope classLoaderScope, DomainObjectContext context) { DependencyResolutionServices services = dependencyManagementServices.create(fileResolver, dependencyMetaDataProvider, projectFinder, context); return new DefaultScriptHandler(scriptSource, services, classLoaderScope); }
DependencyResolutionServices create(FileResolver resolver, DependencyMetaDataProvider dependencyMetaDataProvider, ProjectFinder projectFinder, DomainObjectContext domainObjectContext);
ScriptHandlerInternal create(ScriptSource scriptSource, ClassLoaderScope classLoaderScope, DomainObjectContext context);
ScriptHandler create(ScriptSource scriptSource, ClassLoaderScope classLoaderScope, DomainObjectContext context);