本文整理汇总了Java中org.gradle.api.internal.DomainObjectContext类的典型用法代码示例。如果您正苦于以下问题:Java DomainObjectContext类的具体用法?Java DomainObjectContext怎么用?Java DomainObjectContext使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
DomainObjectContext类属于org.gradle.api.internal包,在下文中一共展示了DomainObjectContext类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: DefaultConfigurationContainer
import org.gradle.api.internal.DomainObjectContext; //导入依赖的package包/类
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();
}
示例2: createConfigurationContainer
import org.gradle.api.internal.DomainObjectContext; //导入依赖的package包/类
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
);
}
示例3: create
import org.gradle.api.internal.DomainObjectContext; //导入依赖的package包/类
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);
}
示例4: ProjectScopeServices
import org.gradle.api.internal.DomainObjectContext; //导入依赖的package包/类
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);
}
}
});
}
示例5: DefaultConfigurationContainer
import org.gradle.api.internal.DomainObjectContext; //导入依赖的package包/类
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;
}
示例6: createConfigurationContainer
import org.gradle.api.internal.DomainObjectContext; //导入依赖的package包/类
ConfigurationContainerInternal createConfigurationContainer(Instantiator instantiator, ConfigurationResolver configurationResolver, DomainObjectContext domainObjectContext,
ListenerManager listenerManager, DependencyMetaDataProvider metaDataProvider) {
return instantiator.newInstance(DefaultConfigurationContainer.class,
configurationResolver,
instantiator,
domainObjectContext,
listenerManager,
metaDataProvider);
}
示例7: create
import org.gradle.api.internal.DomainObjectContext; //导入依赖的package包/类
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));
}
示例8: create
import org.gradle.api.internal.DomainObjectContext; //导入依赖的package包/类
public ScriptHandlerInternal create(ScriptSource scriptSource, ClassLoaderScope classLoaderScope, DomainObjectContext context) {
DependencyResolutionServices services = dependencyManagementServices.create(fileResolver, dependencyMetaDataProvider, projectFinder, context);
return new DefaultScriptHandler(scriptSource, services, classLoaderScope);
}
示例9: create
import org.gradle.api.internal.DomainObjectContext; //导入依赖的package包/类
DependencyResolutionServices create(FileResolver resolver, DependencyMetaDataProvider dependencyMetaDataProvider,
ProjectFinder projectFinder, DomainObjectContext domainObjectContext);
示例10: create
import org.gradle.api.internal.DomainObjectContext; //导入依赖的package包/类
ScriptHandlerInternal create(ScriptSource scriptSource, ClassLoaderScope classLoaderScope, DomainObjectContext context);
示例11: create
import org.gradle.api.internal.DomainObjectContext; //导入依赖的package包/类
ScriptHandler create(ScriptSource scriptSource, ClassLoaderScope classLoaderScope, DomainObjectContext context);