当前位置: 首页>>代码示例>>Java>>正文


Java AsynchronousJobPool类代码示例

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


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

示例1: configure

import org.everrest.core.impl.async.AsynchronousJobPool; //导入依赖的package包/类
@Override
protected void configure() {

    bind(ApiExceptionMapper.class);

    bind(ApiInfoService.class);

    bind(AuthenticationService.class);
    bind(WorkspaceService.class);
    bind(ProjectService.class);

    bind(AccountService.class); //TODO Implement Account/Subscription/Plan
    bind(ETagResponseFilter.class);

    bind(UserService.class);
    bind(UserRegistrationService.class).toProvider(SpringIntegration.fromSpring(UserRegistrationService.class, "userRegistrationService"));
    bind(RegistrationService.class);
    bind(MetricsModule.class);
    bind(UserProfileService.class);

    bind(VirtualFileSystemRegistry.class).to(AutoMountVirtualFileSystemRegistry.class);

    //Important it will create automatically a workspace folder upon workspace creation
    bind(LocalFSMountStrategy.class).toProvider(SpringIntegration.fromSpring(WorkspaceIdLocalFSMountStrategy.class, "workspaceIdLocalFSMountStrategy"));
    //bind(WorkspaceToDirectoryMappingService.class);

    bind(BuilderSelectionStrategy.class).to(LastInUseBuilderSelectionStrategy.class);
    bind(BuilderService.class);
    bind(BuildQueue.class).to(AdaptiveBuildQueue.class);
    //bind(BuilderAdminService.class);
    //bind(SlaveBuilderService.class);

    //bind(RunnerSelectionStrategy.class).to(LastInUseRunnerSelectionStrategy.class);
    //bind(RunnerService.class);
    //bind(RunnerAdminService.class);
    //bind(SlaveRunnerService.class);

    //bind(DebuggerService.class);
    //bind(FormatService.class);

    //bind(KeyService.class);
    //bind(SshKeyStore.class).to(UserProfileSshKeyStore.class);

    //bind(OAuthAuthenticationService.class);
    //bind(OAuthTokenProvider.class).to(OAuthAuthenticatorTokenProvider.class);
    //bind(OAuthAuthenticatorProvider.class).to(OAuthAuthenticatorProviderImpl.class);


    //bind(RestNameEnvironment.class);
    //bind(JavadocService.class);
    //bind(JavaNavigationService.class);
    bind(AsynchronousJobPool.class).to(CodenvyAsynchronousJobPool.class);
    bind(new PathKey<>(AsynchronousJobService.class, "/async/{ws-id}")).to(AsynchronousJobService.class);

    //install(new ArchetypeGeneratorModule());

    install(new CoreRestModule());
    install(new AnalyticsModule());
    install(new BaseProjectModule());
    install(new BuilderModule());
    install(new RunnerModule());
    install(new VirtualFileSystemModule());
    install(new VirtualFileSystemFSModule());
    install(new FactoryModule());
    install(new DocsModule());
}
 
开发者ID:AdaptiveMe,项目名称:adaptive-services-dashbar,代码行数:67,代码来源:ApiModule.java


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