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

Java Provided类代码示例

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

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



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

示例1: ScrubbingEditor

import com.google.auto.factory.Provided; //导入依赖的package包/类
ScrubbingEditor(
    @Provided CommandRunner cmd,
    @Provided FileSystem filesystem,
    @Provided Ui ui,
    @Named("scrubber_binary") @Provided Lazy<File> executable,
    @Provided FileDiffer differ,
    @Provided TarUtils tarUtils,
    String editorName,
    EditorConfig config) {
  this.cmd = cmd;
  this.filesystem = filesystem;
  this.ui = ui;
  this.executable = executable;
  this.differ = differ;
  this.tarUtils = tarUtils;
  this.name = editorName;
  this.scrubberConfig = config.scrubberConfig();
}
 
开发者ID:google,项目名称:MOE,代码行数:19,代码来源:ScrubbingEditor.java


示例2: NominalTypeProcessor

import com.google.auto.factory.Provided; //导入依赖的package包/类
NominalTypeProcessor(
    @Provided LinkFactoryBuilder linkFactoryBuilder,
    @Provided DossierFileSystem dfs,
    @Provided CommentParser parser,
    @Provided TypeRegistry typeRegistry,
    @Provided JSTypeRegistry jsTypeRegistry,
    @Provided StaticTypedScope<JSType> globalScope,
    @Provided TypeExpressionParserFactory expressionParserFactory,
    @Provided TypeInspectorFactory typeInspectorFactory,
    @Provided IndexBuilder typeIndex,
    NominalType type) {
  this.dfs = dfs;
  this.parser = parser;
  this.typeRegistry = typeRegistry;
  this.jsRegistry = jsTypeRegistry;
  this.globalScope = globalScope;
  this.expressionParserFactory = expressionParserFactory;
  this.linkFactory = linkFactoryBuilder.create(type).withTypeContext(type);
  this.typeInspector = typeInspectorFactory.create(type);
  this.type = type;
  this.indexReference = updateTypeIndex(typeIndex);
}
 
开发者ID:jleyba,项目名称:js-dossier,代码行数:23,代码来源:RenderDocumentationTaskSupplier.java


示例3: LinkFactory

import com.google.auto.factory.Provided; //导入依赖的package包/类
/**
 * Creates a new link factory.
 *
 * @param dfs used to generate paths to documentation in the output file system.
 * @param typeRegistry used to lookup nominal types.
 * @param jsTypeRegistry used to lookup JavaScript types.
 * @param typeContext defines the context in which to resolve type names.
 * @param urlTemplate if provided, defines a template for links to source files.
 * @param pathContext the object, if any, to generate paths relative to in the output file system.
 *     If {@code null}, paths will be relative to the output root.
 */
LinkFactory(
    @Provided DossierFileSystem dfs,
    @Provided TypeRegistry typeRegistry,
    @Provided JSTypeRegistry jsTypeRegistry,
    @Provided NodeLibrary nodeLibrary,
    @Provided ModuleNamingConvention namingConvention,
    @Provided TypeContext typeContext,
    @Provided @SourceUrlTemplate Optional<String> urlTemplate,
    @Provided @TypeFilter Predicate<String> typeNameFilter,
    @Nullable NominalType pathContext) {
  this(
      dfs,
      typeRegistry,
      jsTypeRegistry,
      nodeLibrary,
      namingConvention,
      typeContext,
      urlTemplate,
      typeNameFilter,
      pathContext,
      false);
}
 
开发者ID:jleyba,项目名称:js-dossier,代码行数:34,代码来源:LinkFactory.java


示例4: GeraltWomenAdapter

import com.google.auto.factory.Provided; //导入依赖的package包/类
GeraltWomenAdapter(@Provided final GeraltWomanViewHolderFactory viewHolderFactory,
                   final OnItemClickListener itemClickListener,
                   final RecyclerViewAdapterController<GeraltWomanHolder> adapterController) {
    this.itemClickListener = itemClickListener;
    this.viewHolderFactory = viewHolderFactory;
    this.adapterController = adapterController;
    setHasStableIds(true);
}
 
开发者ID:dmitrikudrenko,项目名称:MDRXL,代码行数:9,代码来源:GeraltWomenAdapter.java


示例5: GeraltWomanViewHolder

import com.google.auto.factory.Provided; //导入依赖的package包/类
GeraltWomanViewHolder(final View itemView, @Provided final ImageLoader imageLoader) {
    super(itemView);
    ButterKnife.bind(this, itemView);

    this.imageLoader = imageLoader;
    this.activatedItemForeground = new ColorDrawable(selectedItemColor);
}
 
开发者ID:dmitrikudrenko,项目名称:MDRXL,代码行数:8,代码来源:GeraltWomanViewHolder.java


示例6: GeraltWomanPhotoLoader

import com.google.auto.factory.Provided; //导入依赖的package包/类
GeraltWomanPhotoLoader(@Provided final Context context,
                       @Provided final GeraltWomenRepository repository,
                       @Provided final GeraltWomenRepository womenRepository,
                       final long id) {
    super(context);
    this.repository = repository;
    this.womenRepository = womenRepository;
    this.id = id;
}
 
开发者ID:dmitrikudrenko,项目名称:MDRXL,代码行数:10,代码来源:GeraltWomanPhotoLoader.java


示例7: GeraltWomanLoader

import com.google.auto.factory.Provided; //导入依赖的package包/类
GeraltWomanLoader(@Provided final Context context,
                  @Provided final GeraltWomenRepository repository,
                  final  long id) {
    super(context);
    this.repository = repository;
    this.id = id;
}
 
开发者ID:dmitrikudrenko,项目名称:MDRXL,代码行数:8,代码来源:GeraltWomanLoader.java


示例8: SoundItemViewModel

import com.google.auto.factory.Provided; //导入依赖的package包/类
SoundItemViewModel(@NonNull final Sound sound,
                   @Provided @NonNull final Navigator navigator,
                   @Provided @NonNull final AudioPlayer audioPlayer,
                   @Provided @NonNull final FreeSoundApiService freeSoundApiService) {
    this.sound = get(sound);
    this.navigator = get(navigator);
    this.audioPlayer = get(audioPlayer);
    this.freeSoundApiService = get(freeSoundApiService);
}
 
开发者ID:futurice,项目名称:freesound-android,代码行数:10,代码来源:SoundItemViewModel.java


示例9: RydePgpFileOutputStream

import com.google.auto.factory.Provided; //导入依赖的package包/类
/**
 * Creates a new instance for a particular file.
 *
 * @param os is the upstream {@link OutputStream} which is not closed by this object
 * @throws IllegalArgumentException if {@code filename} isn't a {@code .tar} file
 * @throws RuntimeException to rethrow {@link IOException}
 */
public RydePgpFileOutputStream(
    @Provided @Config("rdeRydeBufferSize") Integer bufferSize,
    @WillNotClose OutputStream os,
    DateTime modified,
    String filename) {
  super(createDelegate(bufferSize, os, modified, filename));
}
 
开发者ID:google,项目名称:nomulus,代码行数:15,代码来源:RydePgpFileOutputStream.java


示例10: VerifyEntityIntegrityStreamer

import com.google.auto.factory.Provided; //导入依赖的package包/类
public VerifyEntityIntegrityStreamer(
    @Provided @Config("projectId") String projectId,
    @Provided BigqueryFactory bigqueryFactory,
    @Provided Retrier retrier,
    @Provided @Named("insertIdGenerator") Supplier<String> idGenerator,
    DateTime scanTime) {
  this.projectId = projectId;
  this.bigqueryFactory = bigqueryFactory;
  this.retrier = retrier;
  this.idGenerator = idGenerator;
  this.scanTime = scanTime;
}
 
开发者ID:google,项目名称:nomulus,代码行数:13,代码来源:VerifyEntityIntegrityStreamer.java


示例11: ShellEditor

import com.google.auto.factory.Provided; //导入依赖的package包/类
ShellEditor(
    @Provided CommandRunner cmd,
    @Provided FileSystem filesystem,
    String name,
    EditorConfig config) {
  this.cmd = cmd;
  this.filesystem = filesystem;
  this.name = name;
  this.commandString = config.commandString();
}
 
开发者ID:google,项目名称:MOE,代码行数:11,代码来源:ShellEditor.java


示例12: PatchingEditor

import com.google.auto.factory.Provided; //导入依赖的package包/类
PatchingEditor(
    @Provided CommandRunner cmd,
    @Provided FileSystem filesystem,
    String editorName,
    @SuppressWarnings("unused") EditorConfig ignored) {
  this.cmd = cmd;
  this.filesystem = filesystem;
  name = editorName;
}
 
开发者ID:google,项目名称:MOE,代码行数:10,代码来源:PatchingEditor.java


示例13: RenamingEditor

import com.google.auto.factory.Provided; //导入依赖的package包/类
RenamingEditor(
    @Provided FileSystem filesystem, @Provided Gson gson, String name, EditorConfig config) {
  this.filesystem = filesystem;
  this.editorName = name;
  if (config.mappings() == null) {
    throw new MoeProblem("No mappings object found in the config for editor %s", editorName);
  }
  regexMappings = mappingsFromConfig(gson, config);
  this.useRegex = config.useRegex();
}
 
开发者ID:google,项目名称:MOE,代码行数:11,代码来源:RenamingEditor.java


示例14: RenderDocumentationTaskSupplier

import com.google.auto.factory.Provided; //导入依赖的package包/类
RenderDocumentationTaskSupplier(
    @Provided RenderDocumentationTaskSupplier_NominalTypeProcessorFactory processorFactory,
    @Provided RenderDocumentationTaskSupplier_RenderDocumentationTaskFactory renderTaskFactory,
    ImmutableList<NominalType> types) {
  this.processorFactory = processorFactory;
  this.renderTaskFactory = renderTaskFactory;
  this.types = types;
}
 
开发者ID:jleyba,项目名称:js-dossier,代码行数:9,代码来源:RenderDocumentationTaskSupplier.java


示例15: RenderDocumentationTask

import com.google.auto.factory.Provided; //导入依赖的package包/类
RenderDocumentationTask(
    @Provided PageRenderer renderer,
    Path output,
    Path jsonOutput,
    Supplier<List<JsType>> types) {
  this.renderer = renderer;
  this.output = output;
  this.jsonOutput = jsonOutput;
  this.types = types;
}
 
开发者ID:jleyba,项目名称:js-dossier,代码行数:11,代码来源:RenderDocumentationTaskSupplier.java


示例16: RenderSourceFileTask

import com.google.auto.factory.Provided; //导入依赖的package包/类
RenderSourceFileTask(
    @Provided DossierFileSystem dfs,
    @Provided IndexBuilder index,
    @Provided PageRenderer renderer,
    @Provided @SourcePrefix Path prefix,
    Path path) {
  this.dfs = dfs;
  this.index = index;
  this.renderer = renderer;
  this.prefix = prefix;
  this.path = path;
}
 
开发者ID:jleyba,项目名称:js-dossier,代码行数:13,代码来源:RenderSourceFileTask.java


示例17: TypeInspector

import com.google.auto.factory.Provided; //导入依赖的package包/类
TypeInspector(
    @Provided DossierFileSystem dfs,
    @Provided CommentParser parser,
    @Provided TypeRegistry registry,
    @Provided StaticTypedScope<JSType> globalScope,
    @Provided JSTypeRegistry jsRegistry,
    @Provided @TypeFilter Predicate<String> typeFilter,
    @Provided TypeExpressionParserFactory expressionParserFactory,
    @Provided LinkFactoryBuilder linkFactoryBuilder,
    NominalType inspectedType) {
  this.dfs = dfs;
  this.parser = parser;
  this.registry = registry;
  this.globalScope = globalScope;
  this.jsRegistry = jsRegistry;
  this.expressionParserFactory = expressionParserFactory;
  this.typeFilter = typeFilter;
  this.linkFactory = linkFactoryBuilder.create(inspectedType);
  this.inspectedType = inspectedType;

  JSType type = inspectedType.getType();
  if (type.isConstructor() || type.isInterface()) {
    type = type.toMaybeFunctionType().getInstanceType();
  } else {
    type = jsRegistry.getNativeType(JSTypeNative.UNKNOWN_TYPE);
  }
  typeMapReplacer = new TemplateTypeMapReplacer(jsRegistry, type.getTemplateTypeMap());
}
 
开发者ID:jleyba,项目名称:js-dossier,代码行数:29,代码来源:TypeInspector.java


示例18: TypeExpressionParser

import com.google.auto.factory.Provided; //导入依赖的package包/类
TypeExpressionParser(
    @Provided DossierFileSystem dfs,
    @Provided TypeRegistry typeRegistry,
    @Provided JSTypeRegistry jsTypeRegistry,
    @Provided NodeLibrary nodeLibrary,
    LinkFactory linkFactory) {
  this.dfs = dfs;
  this.typeRegistry = typeRegistry;
  this.jsTypeRegistry = jsTypeRegistry;
  this.nodeLibrary = nodeLibrary;
  this.linkFactory = linkFactory;
}
 
开发者ID:jleyba,项目名称:js-dossier,代码行数:13,代码来源:TypeExpressionParser.java


示例19: RenderMarkdownTask

import com.google.auto.factory.Provided; //导入依赖的package包/类
RenderMarkdownTask(
    @Provided DossierFileSystem dfs,
    @Provided CommentParser parser,
    @Provided LinkFactoryBuilder linkFactoryBuilder,
    @Provided PageRenderer renderer,
    MarkdownPage page) {
  this.dfs = dfs;
  this.renderer = renderer;
  this.linkFactory = linkFactoryBuilder.create(null);
  this.page = page;
  this.parser = parser;
}
 
开发者ID:jleyba,项目名称:js-dossier,代码行数:13,代码来源:RenderMarkdownTask.java


示例20: RenderResourceTask

import com.google.auto.factory.Provided; //导入依赖的package包/类
RenderResourceTask(@Provided DossierFileSystem dfs, TemplateFile file) {
  this.dfs = dfs;
  this.file = file;
}
 
开发者ID:jleyba,项目名称:js-dossier,代码行数:5,代码来源:RenderResourceTask.java



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
Java NRSerialPort类代码示例发布时间:2022-05-22
下一篇:
Java OpenFileAction类代码示例发布时间: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