• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java Instantiator类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.gradle.internal.reflect.Instantiator的典型用法代码示例。如果您正苦于以下问题:Java Instantiator类的具体用法?Java Instantiator怎么用?Java Instantiator使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



Instantiator类属于org.gradle.internal.reflect包,在下文中一共展示了Instantiator类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: createExtendsion

import org.gradle.internal.reflect.Instantiator; //导入依赖的package包/类
public AtlasExtension createExtendsion(Project project, Instantiator instantiator) {

        AtlasExtension atlasExtension = getExtendsion(project);

        if (null != atlasExtension) {
            return atlasExtension;
        }

        final NamedDomainObjectContainer<TBuildType> buildTypeContainer = project.container(TBuildType.class,
                                                                                            new TBuildTypeFactory(
                                                                                                instantiator, project,
                                                                                                project.getLogger()));
        final NamedDomainObjectContainer<PatchConfig> patchConfigContainer = project.container(PatchConfig.class,
                                                                                               new PatchConfigFactory(
                                                                                                   instantiator,
                                                                                                   project, project
                                                                                                       .getLogger()));
        final NamedDomainObjectContainer<DexConfig>dexConfigContainer = project.container(DexConfig.class,new DexConfigFactory(instantiator,project,project.getLogger()));

        return project.getExtensions().create("atlas", AtlasExtension.class, project, instantiator,
                                              buildTypeContainer, patchConfigContainer,dexConfigContainer);

    }
 
开发者ID:alibaba,项目名称:atlas,代码行数:24,代码来源:AtlasExtensionFactory.java


示例2: DefaultBaseRepositoryFactory

import org.gradle.internal.reflect.Instantiator; //导入依赖的package包/类
public DefaultBaseRepositoryFactory(LocalMavenRepositoryLocator localMavenRepositoryLocator,
                                    FileResolver fileResolver,
                                    Instantiator instantiator,
                                    RepositoryTransportFactory transportFactory,
                                    LocallyAvailableResourceFinder<ModuleComponentArtifactMetadata> locallyAvailableResourceFinder,
                                    FileStore<ModuleComponentArtifactIdentifier> artifactFileStore,
                                    MetaDataParser<MutableMavenModuleResolveMetadata> pomParser,
                                    AuthenticationSchemeRegistry authenticationSchemeRegistry,
                                    IvyContextManager ivyContextManager) {
    this.localMavenRepositoryLocator = localMavenRepositoryLocator;
    this.fileResolver = fileResolver;
    this.instantiator = instantiator;
    this.transportFactory = transportFactory;
    this.locallyAvailableResourceFinder = locallyAvailableResourceFinder;
    this.artifactFileStore = artifactFileStore;
    this.pomParser = pomParser;
    this.authenticationSchemeRegistry = authenticationSchemeRegistry;
    this.ivyContextManager = ivyContextManager;
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:20,代码来源:DefaultBaseRepositoryFactory.java


示例3: createBaseRepositoryFactory

import org.gradle.internal.reflect.Instantiator; //导入依赖的package包/类
BaseRepositoryFactory createBaseRepositoryFactory(LocalMavenRepositoryLocator localMavenRepositoryLocator, Instantiator instantiator, FileResolver fileResolver,
                                                  RepositoryTransportFactory repositoryTransportFactory, LocallyAvailableResourceFinder<ModuleComponentArtifactMetadata> locallyAvailableResourceFinder,
                                                  ArtifactIdentifierFileStore artifactIdentifierFileStore,
                                                  VersionSelectorScheme versionSelectorScheme,
                                                  AuthenticationSchemeRegistry authenticationSchemeRegistry,
                                                  IvyContextManager ivyContextManager) {
    return new DefaultBaseRepositoryFactory(
            localMavenRepositoryLocator,
            fileResolver,
            instantiator,
            repositoryTransportFactory,
            locallyAvailableResourceFinder,
            artifactIdentifierFileStore,
            new GradlePomModuleDescriptorParser(versionSelectorScheme),
            authenticationSchemeRegistry,
            ivyContextManager
    );
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:19,代码来源:DefaultDependencyManagementServices.java


示例4: createConfigurationContainer

import org.gradle.internal.reflect.Instantiator; //导入依赖的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
        );
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:20,代码来源:DefaultDependencyManagementServices.java


示例5: AtlasExtension

import org.gradle.internal.reflect.Instantiator; //导入依赖的package包/类
public AtlasExtension(@NonNull final ProjectInternal project,
                      @NonNull Instantiator instantiator,
                      @NonNull NamedDomainObjectContainer<T> buildTypes,
                      @NonNull NamedDomainObjectContainer<PatchConfig> patchConfigs,
                      @NonNull NamedDomainObjectContainer<DexConfig>dexConfigs) {

    logger = Logging.getLogger(this.getClass());
    this.project = project;

    this.patchConfigs = patchConfigs;
    this.dexConfigs = dexConfigs;
    this.buildTypes = buildTypes;
    this.multiDexConfigs = project.container(MultiDexConfig.class, new MultiDexConfigFactory(
        instantiator,project, project.getLogger()));

    tBuildConfig = (Z) instantiator.newInstance(TBuildConfig.class);
    manifestOptions = instantiator.newInstance(ManifestOptions.class);
    bundleConfig = instantiator.newInstance(BundleConfig.class);
}
 
开发者ID:alibaba,项目名称:atlas,代码行数:20,代码来源:AtlasExtension.java


示例6: DefaultScriptPluginFactory

import org.gradle.internal.reflect.Instantiator; //导入依赖的package包/类
public DefaultScriptPluginFactory(ScriptCompilerFactory scriptCompilerFactory,
                                  Factory<LoggingManagerInternal> loggingManagerFactory,
                                  Instantiator instantiator,
                                  ScriptHandlerFactory scriptHandlerFactory,
                                  PluginRequestApplicator pluginRequestApplicator,
                                  FileLookup fileLookup,
                                  DirectoryFileTreeFactory directoryFileTreeFactory,
                                  DocumentationRegistry documentationRegistry,
                                  ModelRuleSourceDetector modelRuleSourceDetector,
                                  PluginRepositoryRegistry pluginRepositoryRegistry,
                                  PluginRepositoryFactory pluginRepositoryFactory) {
    this.scriptCompilerFactory = scriptCompilerFactory;
    this.loggingManagerFactory = loggingManagerFactory;
    this.instantiator = instantiator;
    this.scriptHandlerFactory = scriptHandlerFactory;
    this.pluginRequestApplicator = pluginRequestApplicator;
    this.fileLookup = fileLookup;
    this.directoryFileTreeFactory = directoryFileTreeFactory;
    this.documentationRegistry = documentationRegistry;
    this.modelRuleSourceDetector = modelRuleSourceDetector;
    this.pluginRepositoryRegistry = pluginRepositoryRegistry;
    this.pluginRepositoryFactory = pluginRepositoryFactory;
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:24,代码来源:DefaultScriptPluginFactory.java


示例7: addToolChain

import org.gradle.internal.reflect.Instantiator; //导入依赖的package包/类
@Defaults
public static void addToolChain(NativeToolChainRegistryInternal toolChainRegistry, ServiceRegistry serviceRegistry) {
    final FileResolver fileResolver = serviceRegistry.get(FileResolver.class);
    final ExecActionFactory execActionFactory = serviceRegistry.get(ExecActionFactory.class);
    final Instantiator instantiator = serviceRegistry.get(Instantiator.class);
    final OperatingSystem operatingSystem = serviceRegistry.get(OperatingSystem.class);
    final BuildOperationProcessor buildOperationProcessor = serviceRegistry.get(BuildOperationProcessor.class);
    final VisualStudioLocator visualStudioLocator = serviceRegistry.get(VisualStudioLocator.class);
    final UcrtLocator ucrtLocator = serviceRegistry.get(UcrtLocator.class);
    final WindowsSdkLocator windowsSdkLocator = serviceRegistry.get(WindowsSdkLocator.class);

    toolChainRegistry.registerFactory(VisualCpp.class, new NamedDomainObjectFactory<VisualCpp>() {
        public VisualCpp create(String name) {
        return instantiator.newInstance(VisualCppToolChain.class, name, buildOperationProcessor, operatingSystem, fileResolver, execActionFactory, visualStudioLocator, windowsSdkLocator, ucrtLocator, instantiator);
        }
    });
    toolChainRegistry.registerDefaultToolChain(VisualCppToolChain.DEFAULT_NAME, VisualCpp.class);
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:19,代码来源:MicrosoftVisualCppCompilerPlugin.java


示例8: DefaultReportContainer

import org.gradle.internal.reflect.Instantiator; //导入依赖的package包/类
public DefaultReportContainer(Class<? extends T> type, Instantiator instantiator) {
    super(type, instantiator, Report.NAMER);

    enabled = matching(new Spec<T>() {
        public boolean isSatisfiedBy(T element) {
            return element.isEnabled();
        }
    });

    beforeChange(new Runnable() {
        public void run() {
            throw new ImmutableViolationException();
        }
    });
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:16,代码来源:DefaultReportContainer.java


示例9: DefaultTaskContainer

import org.gradle.internal.reflect.Instantiator; //导入依赖的package包/类
public DefaultTaskContainer(MutableModelNode modelNode, ProjectInternal project, Instantiator instantiator, ITaskFactory taskFactory, ProjectAccessListener projectAccessListener) {
    super(Task.class, instantiator, project);
    this.modelNode = modelNode;
    this.taskFactory = taskFactory;
    this.projectAccessListener = projectAccessListener;
    this.instantiator = new TaskInstantiator(taskFactory);
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:8,代码来源:DefaultTaskContainer.java


示例10: BinaryInfo

import org.gradle.internal.reflect.Instantiator; //导入依赖的package包/类
private BinaryInfo(ComponentSpecIdentifier componentId, Class<? extends BinarySpec> publicType, MutableModelNode modelNode, MutableModelNode componentNode, ITaskFactory taskFactory, Instantiator instantiator) {
    this.componentId = componentId;
    this.publicType = publicType;
    this.modelNode = modelNode;
    this.componentNode = componentNode;
    this.taskFactory = taskFactory;
    this.instantiator = instantiator;
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:9,代码来源:BaseBinarySpec.java


示例11: DefaultTaskContainerFactory

import org.gradle.internal.reflect.Instantiator; //导入依赖的package包/类
public DefaultTaskContainerFactory(ModelRegistry modelRegistry, Instantiator instantiator, ITaskFactory taskFactory, Project project, ProjectAccessListener projectAccessListener) {
    this.modelRegistry = modelRegistry;
    this.instantiator = instantiator;
    this.taskFactory = taskFactory;
    this.project = project;
    this.projectAccessListener = projectAccessListener;
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:8,代码来源:DefaultTaskContainerFactory.java


示例12: visualStudio

import org.gradle.internal.reflect.Instantiator; //导入依赖的package包/类
@Model
public static VisualStudioExtensionInternal visualStudio(ServiceRegistry serviceRegistry, ProjectIdentifier projectIdentifier) {
    Instantiator instantiator = serviceRegistry.get(Instantiator.class);
    ProjectModelResolver projectModelResolver = serviceRegistry.get(ProjectModelResolver.class);
    FileResolver fileResolver = serviceRegistry.get(FileResolver.class);

    return instantiator.newInstance(DefaultVisualStudioExtension.class, projectIdentifier, instantiator, projectModelResolver, fileResolver);
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:9,代码来源:VisualStudioPlugin.java


示例13: DefaultTestLoggingContainer

import org.gradle.internal.reflect.Instantiator; //导入依赖的package包/类
public DefaultTestLoggingContainer(Instantiator instantiator) {
    for (LogLevel level: LogLevel.values()) {
        perLevelTestLogging.put(level, instantiator.newInstance(DefaultTestLogging.class));
    }

    setEvents(EnumSet.of(TestLogEvent.FAILED));
    setExceptionFormat(TestExceptionFormat.SHORT);

    getInfo().setEvents(EnumSet.of(TestLogEvent.FAILED, TestLogEvent.SKIPPED, TestLogEvent.STANDARD_OUT, TestLogEvent.STANDARD_ERROR));
    getInfo().setStackTraceFilters(EnumSet.of(TestStackTraceFilter.TRUNCATE));

    getDebug().setEvents(EnumSet.allOf(TestLogEvent.class));
    getDebug().setMinGranularity(0);
    getDebug().setStackTraceFilters(EnumSet.noneOf(TestStackTraceFilter.class));
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:16,代码来源:DefaultTestLoggingContainer.java


示例14: createDistributions

import org.gradle.internal.reflect.Instantiator; //导入依赖的package包/类
@Defaults
void createDistributions(@Path("distributions") PlayDistributionContainer distributions, @Path("binaries") ModelMap<PlayApplicationBinarySpecInternal> playBinaries, PlayPluginConfigurations configurations, ServiceRegistry serviceRegistry) {
    FileOperations fileOperations = serviceRegistry.get(FileOperations.class);
    Instantiator instantiator = serviceRegistry.get(Instantiator.class);
    for (PlayApplicationBinarySpecInternal binary : playBinaries) {
        PlayDistribution distribution = instantiator.newInstance(DefaultPlayDistribution.class, binary.getProjectScopedName(), fileOperations.copySpec(), binary);
        distribution.setBaseName(binary.getProjectScopedName());
        distributions.add(distribution);
    }
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:11,代码来源:PlayDistributionPlugin.java


示例15: MavenPublishPlugin

import org.gradle.internal.reflect.Instantiator; //导入依赖的package包/类
@Inject
public MavenPublishPlugin(Instantiator instantiator, DependencyMetaDataProvider dependencyMetaDataProvider, FileResolver fileResolver,
                          ProjectDependencyPublicationResolver projectDependencyResolver, FileCollectionFactory fileCollectionFactory) {
    this.instantiator = instantiator;
    this.dependencyMetaDataProvider = dependencyMetaDataProvider;
    this.fileResolver = fileResolver;
    this.projectDependencyResolver = projectDependencyResolver;
    this.fileCollectionFactory = fileCollectionFactory;
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:10,代码来源:MavenPublishPlugin.java


示例16: defaultScriptPluginFactory

import org.gradle.internal.reflect.Instantiator; //导入依赖的package包/类
private DefaultScriptPluginFactory defaultScriptPluginFactory() {
    return new DefaultScriptPluginFactory(
        get(ScriptCompilerFactory.class),
        getFactory(LoggingManagerInternal.class),
        get(Instantiator.class),
        get(ScriptHandlerFactory.class),
        get(PluginRequestApplicator.class),
        get(FileLookup.class),
        get(DirectoryFileTreeFactory.class),
        get(DocumentationRegistry.class),
        get(ModelRuleSourceDetector.class),
        get(PluginRepositoryRegistry.class),
        get(PluginRepositoryFactory.class));
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:15,代码来源:BuildScopeServices.java


示例17: EarPluginConvention

import org.gradle.internal.reflect.Instantiator; //导入依赖的package包/类
@Inject
public EarPluginConvention(FileResolver fileResolver, Instantiator instantiator) {
    this.fileResolver = fileResolver;
    this.instantiator = instantiator;
    deploymentDescriptor = instantiator.newInstance(DefaultDeploymentDescriptor.class, fileResolver, instantiator);
    deploymentDescriptor.readFrom("META-INF/application.xml");
    deploymentDescriptor.readFrom(appDirName + "/META-INF/" + deploymentDescriptor.getFileName());
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:9,代码来源:EarPluginConvention.java


示例18: DefaultSourceSetContainer

import org.gradle.internal.reflect.Instantiator; //导入依赖的package包/类
public DefaultSourceSetContainer(FileResolver fileResolver, TaskResolver taskResolver, Instantiator classGenerator, SourceDirectorySetFactory sourceDirectorySetFactory) {
    super(SourceSet.class, classGenerator, new Namer<SourceSet>() {
        public String determineName(SourceSet ss) {
            return ss.getName();
        }
    });
    this.fileResolver = fileResolver;
    this.taskResolver = taskResolver;
    this.instantiator = classGenerator;
    this.sourceDirectorySetFactory = sourceDirectorySetFactory;
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:12,代码来源:DefaultSourceSetContainer.java


示例19: createPluginRepositoryFactory

import org.gradle.internal.reflect.Instantiator; //导入依赖的package包/类
DefaultPluginRepositoryFactory createPluginRepositoryFactory(PluginResolutionServiceResolver pluginResolutionServiceResolver, VersionSelectorScheme versionSelectorScheme,
                                                             final DependencyManagementServices dependencyManagementServices, final FileResolver fileResolver,
                                                             final DependencyMetaDataProvider dependencyMetaDataProvider, Instantiator instantiator,
                                                             final AuthenticationSchemeRegistry authenticationSchemeRegistry) {

    final Factory<DependencyResolutionServices> dependencyResolutionServicesFactory = makeDependencyResolutionServicesFactory(
        dependencyManagementServices, fileResolver, dependencyMetaDataProvider);
    return instantiator.newInstance(
        DefaultPluginRepositoryFactory.class, pluginResolutionServiceResolver,
        dependencyResolutionServicesFactory, versionSelectorScheme, instantiator,
        authenticationSchemeRegistry);
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:13,代码来源:PluginUsePluginServiceRegistry.java


示例20: makeAuthenticationContainer

import org.gradle.internal.reflect.Instantiator; //导入依赖的package包/类
private AuthenticationContainer makeAuthenticationContainer(Instantiator instantiator, AuthenticationSchemeRegistry authenticationSchemeRegistry) {
    DefaultAuthenticationContainer container = instantiator.newInstance(DefaultAuthenticationContainer.class, instantiator);

    for (Map.Entry<Class<Authentication>, Class<? extends Authentication>> e : authenticationSchemeRegistry.getRegisteredSchemes().entrySet()) {
        container.registerBinding(e.getKey(), e.getValue());
    }

    return container;
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:10,代码来源:DefaultPluginRepositoryFactory.java



注:本文中的org.gradle.internal.reflect.Instantiator类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java RepositoryElementMetaInterface类代码示例发布时间:2022-05-22
下一篇:
Java SqlSumEmptyIsZeroAggFunction类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap