本文整理汇总了Java中org.eclipse.che.api.project.server.ProjectImporter类的典型用法代码示例。如果您正苦于以下问题:Java ProjectImporter类的具体用法?Java ProjectImporter怎么用?Java ProjectImporter使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ProjectImporter类属于org.eclipse.che.api.project.server包,在下文中一共展示了ProjectImporter类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: configure
import org.eclipse.che.api.project.server.ProjectImporter; //导入依赖的package包/类
@Override
protected void configure() {
Multibinder<ProjectType> projectTypeMultibinder = Multibinder.newSetBinder(binder(), ProjectType.class);
projectTypeMultibinder.addBinding().to(AdaptiveProjectType.class);
Multibinder.newSetBinder(binder(), ProjectHandler.class).addBinding().to(AdaptiveProjectGenerator.class);
Multibinder.newSetBinder(binder(), ProjectImporter.class).addBinding().to(AdaptiveProjectGenerator.class);
Multibinder<Builder> builderMultibinder = Multibinder.newSetBinder(binder(), Builder.class);
builderMultibinder.addBinding().to(AdaptiveBuilder.class);
}
示例2: configure
import org.eclipse.che.api.project.server.ProjectImporter; //导入依赖的package包/类
/** {@inheritDoc} */
@Override
protected void configure() {
Multibinder<ProjectImporter> projectImporterMultibinder =
Multibinder.newSetBinder(binder(), ProjectImporter.class);
projectImporterMultibinder.addBinding().to(GitProjectImporter.class);
Multibinder.newSetBinder(binder(), ProjectTypeDef.class).addBinding().to(GitProjectType.class);
bind(GitConfigurationChecker.class).asEagerSingleton();
Multibinder<VcsStatusProvider> vcsStatusProviderMultibinder =
newSetBinder(binder(), VcsStatusProvider.class);
vcsStatusProviderMultibinder.addBinding().to(GitStatusProvider.class);
Multibinder<ValueProviderFactory> multiBinder =
Multibinder.newSetBinder(binder(), ValueProviderFactory.class);
multiBinder.addBinding().to(GitValueProviderFactory.class);
bind(GitUserResolver.class).to(LocalGitUserResolver.class);
bind(GitService.class);
bind(GitExceptionMapper.class);
bind(BranchListWriter.class);
bind(CommitMessageWriter.class);
bind(MergeResultWriter.class);
bind(RemoteListWriter.class);
bind(StatusPageWriter.class);
bind(TagListWriter.class);
bind(GitJsonRpcMessenger.class);
Multibinder.newSetBinder(binder(), CredentialsProvider.class)
.addBinding()
.to(GitBasicAuthenticationCredentialsProvider.class);
bind(GitCheckoutDetector.class).asEagerSingleton();
bind(GitChangesDetector.class).asEagerSingleton();
bind(GitStatusChangedDetector.class).asEagerSingleton();
}
示例3: asDto
import org.eclipse.che.api.project.server.ProjectImporter; //导入依赖的package包/类
/** Converts {@link ProjectImporter} to {@link ProjectImporterDescriptor}. */
public static ProjectImporterDescriptor asDto(ProjectImporter importer) {
return newDto(ProjectImporterDescriptor.class)
.withId(importer.getId())
.withInternal(importer.isInternal())
.withCategory(importer.getSourceCategory().getValue())
.withDescription(
importer.getDescription() != null
? importer.getDescription()
: "description not found");
}
示例4: configure
import org.eclipse.che.api.project.server.ProjectImporter; //导入依赖的package包/类
/** {@inheritDoc} */
@Override
protected void configure() {
bind(GitHubDTOFactory.class);
Multibinder<ProjectImporter> projectImporterMultibinder =
Multibinder.newSetBinder(binder(), ProjectImporter.class);
projectImporterMultibinder.addBinding().to(GitHubProjectImporter.class);
Multibinder.newSetBinder(binder(), SshKeyUploader.class)
.addBinding()
.to(GitHubKeyUploader.class);
bind(GitHubService.class);
}
示例5: ProjectImporterRegistry
import org.eclipse.che.api.project.server.ProjectImporter; //导入依赖的package包/类
@Inject
public ProjectImporterRegistry(Set<ProjectImporter> importers) {
importers.forEach(importer -> this.importers.put(importer.getId(), importer));
}
示例6: get
import org.eclipse.che.api.project.server.ProjectImporter; //导入依赖的package包/类
public Optional<ProjectImporter> get(String type) {
return type == null ? empty() : ofNullable(importers.get(type));
}
示例7: getOrNull
import org.eclipse.che.api.project.server.ProjectImporter; //导入依赖的package包/类
public ProjectImporter getOrNull(String type) {
return get(type).orElse(null);
}
示例8: getAll
import org.eclipse.che.api.project.server.ProjectImporter; //导入依赖的package包/类
public Set<ProjectImporter> getAll() {
return unmodifiableSet(new HashSet<>(importers.values()));
}
示例9: getAllAsList
import org.eclipse.che.api.project.server.ProjectImporter; //导入依赖的package包/类
public List<ProjectImporter> getAllAsList() {
return unmodifiableList(new ArrayList<>(importers.values()));
}