-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9559dbe
commit 1285a48
Showing
33 changed files
with
423 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
version=0.61 | ||
version=0.62 | ||
springVersion=4.1.5.RELEASE | ||
jerseyVersion=2.19 | ||
grizzlyVersion=2.3.21 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Spring Boot entry point for Microserver | ||
|
||
[micro-boot example apps](https://github.com/aol/micro-server/tree/master/micro-boot/src/test/java/app) | ||
|
||
## To use | ||
|
||
Add micro-boot to the classpath | ||
|
||
Maven | ||
|
||
<dependency> | ||
<groupId>com.aol.microservices</groupId> | ||
<artifactId>micro-boot</artifactId> | ||
<version>0.62</version> | ||
</dependency> | ||
Gradle | ||
|
||
compile 'com.aol.microservices:micro-boot:0.62' | ||
|
||
And also add Grizzly and Jersey (micro-grizzly-with-jersey will add both) | ||
|
||
Maven | ||
|
||
<dependency> | ||
<groupId>com.aol.microservices</groupId> | ||
<artifactId>micro-grizzly-with-jersey</artifactId> | ||
<version>0.62</version> | ||
</dependency> | ||
Gradle | ||
|
||
compile 'com.aol.microservices:micro-grizzly-with-jersey:0.62' | ||
|
||
|
||
## Create a simple server | ||
|
||
public class SimpleApp { | ||
|
||
public static void main(String[] args){ | ||
new MicrobootApp(()->"test-app").run(); | ||
} | ||
|
||
} | ||
|
||
# Relationship to Microserver and Spring Boot | ||
|
||
micro-boot allows you to use Microserver plugins & jax-rs support with Spring Boot back ends. | ||
|
||
micro-boot apps are started via the MicrobootApp (equivalent to MicroserverApp) and configured via the Microboot annotation (equivalent to the Microserver annotation) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,20 +41,9 @@ modifyPom { | |
inceptionYear '2015' | ||
|
||
groupId 'com.aol.microservices' | ||
artifactId 'microserver-core' | ||
artifactId 'micro-core' | ||
version "$version" | ||
|
||
dependencyManagement { | ||
dependencies{ | ||
dependency{ | ||
groupId 'org.springframework' | ||
artifactId 'spring-framework-bom' | ||
version '4.1.5.RELEASE' | ||
type 'pom' | ||
scope 'import' | ||
} | ||
} | ||
} | ||
|
||
scm { | ||
url 'scm:[email protected]:aol/micro-server.git' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,19 @@ | ||
# The core of Microserver | ||
|
||
This module imports your configured plugins, starts and manages your JEE webserver and jax-rs implementation. | ||
This module imports your configured plugins, starts and manages your JEE webserver and jax-rs implementation. | ||
|
||
## To use | ||
|
||
Simply add to the classpath | ||
|
||
Maven | ||
|
||
<dependency> | ||
<groupId>com.aol.microservices</groupId> | ||
<artifactId>micro-core</artifactId> | ||
<version>0.62</version> | ||
</dependency> | ||
Gradle | ||
|
||
compile 'com.aol.microservices:micro-core:0.62' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,21 @@ | ||
# Grizzly, Jersey and Microserver together | ||
|
||
Convenience module that packages Grizzly, Jersey and Microserver together | ||
[Example Grizzly & Jersey Apps](https://github.com/aol/micro-server/tree/master/micro-grizzly/src/test/java/app) | ||
|
||
Convenience module that packages Grizzly, Jersey and Microserver together | ||
|
||
## To use | ||
|
||
Simply add to the classpath | ||
|
||
Maven | ||
|
||
<dependency> | ||
<groupId>com.aol.microservices</groupId> | ||
<artifactId>micro-grizzly-with-jersey</artifactId> | ||
<version>0.62</version> | ||
</dependency> | ||
Gradle | ||
|
||
compile 'com.aol.microservices:micro-grizzly-with-jersey:0.62' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,22 @@ | ||
# Grizzly web server Plugin | ||
|
||
Plugin that allows the Grizzly Web server to be used with Microserver | ||
[Example Grizzly apps](https://github.com/aol/micro-server/tree/master/micro-grizzly/src/test/java/app) | ||
|
||
Plugin that allows the Grizzly Web server to be used with Microserver. | ||
|
||
|
||
## To use | ||
|
||
Simply add to the classpath | ||
|
||
Maven | ||
|
||
<dependency> | ||
<groupId>com.aol.microservices</groupId> | ||
<artifactId>micro-grizzly</artifactId> | ||
<version>0.62</version> | ||
</dependency> | ||
Gradle | ||
|
||
compile 'com.aol.microservices:micro-grizzly:0.62' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,47 @@ | ||
# Guava Plugin for Microserver | ||
|
||
[micro-guava example apps](https://github.com/aol/micro-server/tree/master/micro-guava/src/test/java/app) | ||
|
||
This plugin | ||
|
||
1. Configures Jackson for Guava serialisation / deserialisation, so Guava types can be used as input and output to jax-rs Resources | ||
2. Configures a Guava EventBus as a Spring Bean (named microserverEventBus) | ||
2. Configures a Guava EventBus as a Spring Bean (named microserverEventBus) | ||
|
||
## To use | ||
|
||
Simply add to the classpath | ||
|
||
Maven | ||
|
||
<dependency> | ||
<groupId>com.aol.microservices</groupId> | ||
<artifactId>micro-guava</artifactId> | ||
<version>0.62</version> | ||
</dependency> | ||
Gradle | ||
|
||
compile 'com.aol.microservices:micro-guava:0.62' | ||
|
||
|
||
# Example Guava Resource | ||
|
||
@Rest | ||
@Path("/status") | ||
public class GuavaAppResource { | ||
|
||
@POST | ||
@Produces("application/json") | ||
@Path("/ping") | ||
public ImmutableList<String> ping( ImmutableGuavaEntity entity) { | ||
return entity.getList(); | ||
} | ||
@POST | ||
@Produces("application/json") | ||
@Path("/optional") | ||
public Optional<String> optional(Jdk8Entity entity) { | ||
return entity.getName(); | ||
} | ||
|
||
} |
12 changes: 4 additions & 8 deletions
12
micro-guava/src/test/java/app/guava/com/aol/micro/server/GuavaAppResource.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.