本文整理匯總了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());
}