1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package com.atlassian.jira.rest.client.plugin;
18
19 import com.atlassian.httpclient.api.HttpClient;
20 import com.atlassian.jira.rest.client.api.ComponentRestClient;
21 import com.atlassian.jira.rest.client.internal.async.AsynchronousComponentRestClient;
22 import com.atlassian.plugin.remotable.api.annotation.PublicComponent;
23
24 import java.net.URI;
25
26 @PublicComponent(ComponentRestClient.class)
27 public final class ComponentRestClientServiceFactory extends AbstractRestClientServiceFactory<ComponentRestClient>
28 {
29 @Override
30 protected ComponentRestClient getService(URI baseUri, HttpClient httpClient)
31 {
32 return new AsynchronousComponentRestClient(baseUri, httpClient);
33 }
34 }