Skip to content

Commit 7faf5eb

Browse files
author
Stephane Landelle
committed
Move registry stuff to extra module
1 parent 713054c commit 7faf5eb

15 files changed

+88
-23
lines changed

extras/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
<modules>
4747
<module>guava</module>
4848
<module>jdeferred</module>
49+
<module>registry</module>
4950
</modules>
5051

5152
<dependencies>

extras/registry/pom.xml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<parent>
4+
<groupId>org.asynchttpclient</groupId>
5+
<artifactId>async-http-client-extras-parent</artifactId>
6+
<version>2.0.0-SNAPSHOT</version>
7+
</parent>
8+
<modelVersion>4.0.0</modelVersion>
9+
<artifactId>async-http-client-extras-registry</artifactId>
10+
<name>Asynchronous Http Client Registry Extras</name>
11+
<description>
12+
The Async Http Client Registry Extras.
13+
</description>
14+
15+
16+
<dependencies>
17+
<dependency>
18+
<groupId>org.asynchttpclient</groupId>
19+
<artifactId>async-http-client-netty-provider</artifactId>
20+
<version>${project.version}</version>
21+
<scope>test</scope>
22+
</dependency>
23+
<dependency>
24+
<groupId>org.asynchttpclient</groupId>
25+
<artifactId>async-http-client-grizzly-provider</artifactId>
26+
<version>${project.version}</version>
27+
<scope>test</scope>
28+
</dependency>
29+
</dependencies>
30+
</project>

api/src/main/java/org/asynchttpclient/AsyncHttpClientFactory.java renamed to extras/registry/src/main/java/org/asynchttpclient/extra/AsyncHttpClientFactory.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,12 @@
1010
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1111
* See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.
1212
*/
13-
package org.asynchttpclient;
13+
package org.asynchttpclient.extra;
1414

15-
import org.asynchttpclient.util.AsyncImplHelper;
15+
import org.asynchttpclient.AsyncHttpClient;
16+
import org.asynchttpclient.AsyncHttpClientConfig;
17+
import org.asynchttpclient.AsyncHttpProvider;
18+
import org.asynchttpclient.DefaultAsyncHttpClient;
1619
import org.slf4j.Logger;
1720
import org.slf4j.LoggerFactory;
1821

api/src/main/java/org/asynchttpclient/AsyncHttpClientImplException.java renamed to extras/registry/src/main/java/org/asynchttpclient/extra/AsyncHttpClientImplException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1111
* See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.
1212
*/
13-
package org.asynchttpclient;
13+
package org.asynchttpclient.extra;
1414

1515
@SuppressWarnings("serial")
1616
public class AsyncHttpClientImplException extends RuntimeException {

api/src/main/java/org/asynchttpclient/AsyncHttpClientRegistry.java renamed to extras/registry/src/main/java/org/asynchttpclient/extra/AsyncHttpClientRegistry.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1111
* See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.
1212
*/
13-
package org.asynchttpclient;
13+
package org.asynchttpclient.extra;
14+
15+
import org.asynchttpclient.AsyncHttpClient;
1416

1517
import java.util.Set;
1618

@@ -79,4 +81,3 @@ public interface AsyncHttpClientRegistry {
7981

8082
void clearAllInstances();
8183
}
82-

api/src/main/java/org/asynchttpclient/AsyncHttpClientRegistryImpl.java renamed to extras/registry/src/main/java/org/asynchttpclient/extra/AsyncHttpClientRegistryImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1111
* See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.
1212
*/
13-
package org.asynchttpclient;
13+
package org.asynchttpclient.extra;
1414

15-
import org.asynchttpclient.util.AsyncImplHelper;
15+
import org.asynchttpclient.AsyncHttpClient;
1616

1717
import java.util.Set;
1818
import java.util.concurrent.ConcurrentHashMap;

api/src/main/java/org/asynchttpclient/util/AsyncImplHelper.java renamed to extras/registry/src/main/java/org/asynchttpclient/extra/AsyncImplHelper.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,9 @@
1010
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1111
* See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.
1212
*/
13-
package org.asynchttpclient.util;
13+
package org.asynchttpclient.extra;
1414

1515
import org.asynchttpclient.AsyncHttpClient;
16-
import org.asynchttpclient.AsyncHttpClientFactory;
17-
import org.asynchttpclient.AsyncHttpClientImplException;
1816

1917
import java.io.IOException;
2018
import java.io.InputStream;
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@
1010
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1111
* See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.
1212
*/
13-
package org.asynchttpclient.providers.grizzly;
13+
package org.asynchttpclient.extra;
1414

15-
import org.asynchttpclient.AbstractAsyncHttpClientFactoryTest;
1615
import org.asynchttpclient.AsyncHttpClientConfig;
1716
import org.asynchttpclient.AsyncHttpProvider;
17+
import org.asynchttpclient.extra.AbstractAsyncHttpClientFactoryTest;
18+
import org.asynchttpclient.providers.grizzly.GrizzlyAsyncHttpProvider;
1819
import org.testng.annotations.Test;
1920

2021
@Test
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@
1010
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1111
* See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.
1212
*/
13-
package org.asynchttpclient.providers.netty;
13+
package org.asynchttpclient.extra;
1414

15-
import org.asynchttpclient.AbstractAsyncHttpClientFactoryTest;
1615
import org.asynchttpclient.AsyncHttpClientConfig;
1716
import org.asynchttpclient.AsyncHttpProvider;
17+
import org.asynchttpclient.extra.AbstractAsyncHttpClientFactoryTest;
18+
import org.asynchttpclient.providers.netty.NettyAsyncHttpProvider;
1819
import org.testng.annotations.Test;
1920

2021
@Test

api/src/test/java/org/asynchttpclient/AbstractAsyncHttpClientFactoryTest.java renamed to extras/registry/src/test/java/org/asynchttpclient/extra/AbstractAsyncHttpClientFactoryTest.java

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,20 @@
1010
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1111
* See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.
1212
*/
13-
package org.asynchttpclient;
14-
13+
package org.asynchttpclient.extra;
14+
15+
import org.asynchttpclient.AsyncHttpClient;
16+
import org.asynchttpclient.AsyncHttpClientConfig;
17+
import org.asynchttpclient.AsyncHttpProvider;
18+
import org.asynchttpclient.DefaultAsyncHttpClient;
19+
import org.asynchttpclient.Response;
20+
import org.asynchttpclient.TestAsyncHttpClient;
21+
import org.asynchttpclient.AsyncHttpClientConfig.Builder;
1522
import org.asynchttpclient.async.util.EchoHandler;
1623
import org.asynchttpclient.async.util.TestUtils;
17-
import org.asynchttpclient.util.AsyncImplHelper;
24+
import org.asynchttpclient.extra.AsyncHttpClientFactory;
25+
import org.asynchttpclient.extra.AsyncHttpClientImplException;
26+
import org.asynchttpclient.extra.AsyncImplHelper;
1827
import org.eclipse.jetty.server.Server;
1928
import org.testng.Assert;
2029
import org.testng.annotations.AfterClass;
@@ -23,6 +32,7 @@
2332
import org.testng.annotations.Test;
2433

2534
import java.lang.reflect.InvocationTargetException;
35+
2636
import junit.extensions.PA;
2737

2838
public abstract class AbstractAsyncHttpClientFactoryTest {

api/src/test/java/org/asynchttpclient/AsyncHttpClientRegistryTest.java renamed to extras/registry/src/test/java/org/asynchttpclient/extra/AsyncHttpClientRegistryTest.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,13 @@
1010
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1111
* See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.
1212
*/
13-
package org.asynchttpclient;
13+
package org.asynchttpclient.extra;
1414

15-
import org.asynchttpclient.util.AsyncImplHelper;
15+
import org.asynchttpclient.AsyncHttpClient;
16+
import org.asynchttpclient.extra.AsyncHttpClientFactory;
17+
import org.asynchttpclient.extra.AsyncHttpClientImplException;
18+
import org.asynchttpclient.extra.AsyncHttpClientRegistryImpl;
19+
import org.asynchttpclient.extra.AsyncImplHelper;
1620
import org.testng.Assert;
1721
import org.testng.annotations.AfterClass;
1822
import org.testng.annotations.BeforeClass;

api/src/test/java/org/asynchttpclient/BadAsyncHttpClient.java renamed to extras/registry/src/test/java/org/asynchttpclient/extra/BadAsyncHttpClient.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,17 @@
1010
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1111
* See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.
1212
*/
13-
package org.asynchttpclient;
13+
package org.asynchttpclient.extra;
14+
15+
import org.asynchttpclient.AsyncHandler;
16+
import org.asynchttpclient.AsyncHttpClient;
17+
import org.asynchttpclient.AsyncHttpClientConfig;
18+
import org.asynchttpclient.AsyncHttpProvider;
19+
import org.asynchttpclient.BoundRequestBuilder;
20+
import org.asynchttpclient.ListenableFuture;
21+
import org.asynchttpclient.Request;
22+
import org.asynchttpclient.Response;
23+
import org.asynchttpclient.SignatureCalculator;
1424

1525
import java.io.IOException;
1626

api/src/test/java/org/asynchttpclient/BadAsyncHttpClientException.java renamed to extras/registry/src/test/java/org/asynchttpclient/extra/BadAsyncHttpClientException.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1111
* See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.
1212
*/
13-
package org.asynchttpclient;
13+
package org.asynchttpclient.extra;
14+
15+
import org.asynchttpclient.extra.AsyncHttpClientImplException;
1416

1517
@SuppressWarnings("serial")
1618
public class BadAsyncHttpClientException extends AsyncHttpClientImplException {

api/src/test/java/org/asynchttpclient/BadAsyncHttpClientRegistry.java renamed to extras/registry/src/test/java/org/asynchttpclient/extra/BadAsyncHttpClientRegistry.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1111
* See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.
1212
*/
13-
package org.asynchttpclient;
13+
package org.asynchttpclient.extra;
14+
15+
import org.asynchttpclient.extra.AsyncHttpClientRegistryImpl;
1416

1517
public class BadAsyncHttpClientRegistry extends AsyncHttpClientRegistryImpl {
1618

api/src/test/java/org/asynchttpclient/TestAsyncHttpClientRegistry.java renamed to extras/registry/src/test/java/org/asynchttpclient/extra/TestAsyncHttpClientRegistry.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1111
* See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.
1212
*/
13-
package org.asynchttpclient;
13+
package org.asynchttpclient.extra;
14+
15+
import org.asynchttpclient.extra.AsyncHttpClientRegistryImpl;
1416

1517
public class TestAsyncHttpClientRegistry extends AsyncHttpClientRegistryImpl {
1618

0 commit comments

Comments
 (0)