本文整理汇总了Java中com.google.auto.factory.Provided类的典型用法代码示例。如果您正苦于以下问题:Java Provided类的具体用法?Java Provided怎么用?Java Provided使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Provided类属于com.google.auto.factory包,在下文中一共展示了Provided类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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();
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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;
}
示例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;
}
示例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);
}
示例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));
}
示例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;
}
示例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();
}
示例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;
}
示例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();
}
示例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;
}
示例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;
}