io.drinkwater:drinkwater-core

create, test and use services fast

License

License

GroupId

GroupId

io.drinkwater
ArtifactId

ArtifactId

drinkwater-core
Last Version

Last Version

0.0.10
Release Date

Release Date

Type

Type

jar
Description

Description

create, test and use services fast

Download drinkwater-core

How to add to project

<!-- https://jarcasting.com/artifacts/io.drinkwater/drinkwater-core/ -->
<dependency>
    <groupId>io.drinkwater</groupId>
    <artifactId>drinkwater-core</artifactId>
    <version>0.0.10</version>
</dependency>
// https://jarcasting.com/artifacts/io.drinkwater/drinkwater-core/
implementation 'io.drinkwater:drinkwater-core:0.0.10'
// https://jarcasting.com/artifacts/io.drinkwater/drinkwater-core/
implementation ("io.drinkwater:drinkwater-core:0.0.10")
'io.drinkwater:drinkwater-core:jar:0.0.10'
<dependency org="io.drinkwater" name="drinkwater-core" rev="0.0.10">
  <artifact name="drinkwater-core" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.drinkwater', module='drinkwater-core', version='0.0.10')
)
libraryDependencies += "io.drinkwater" % "drinkwater-core" % "0.0.10"
[io.drinkwater/drinkwater-core "0.0.10"]

Dependencies

compile (19)

Group / Artifact Type Version
io.drinkwater : drinkwater-common jar 0.0.10
io.drinkwater : drinkwater-rest jar 0.0.10
io.dropwizard.metrics : metrics-core jar 3.1.2
org.apache.commons : commons-lang3 jar 3.5
org.apache.commons : commons-dbcp2 jar 2.1.1
io.javaslang : javaslang jar 2.0.2
org.apache.camel : camel-core jar 2.18.1
org.apache.camel : camel-jasypt jar 2.18.1
org.apache.camel : camel-jetty jar 2.18.1
org.apache.camel : camel-quartz2 jar 2.18.1
org.apache.camel : camel-jackson jar 2.18.1
com.mashape.unirest : unirest-java jar 1.4.9
org.apache.httpcomponents : httpclient jar 4.5.2
org.apache.httpcomponents : httpasyncclient jar 4.1.1
org.apache.httpcomponents : httpmime jar 4.5.2
org.json : json jar 20160212
commons-io : commons-io jar 2.5
io.dropwizard.metrics : metrics-jvm jar 3.1.2
org.slf4j : slf4j-api jar 1.7.21

test (5)

Group / Artifact Type Version
io.drinkwater : drinkwater-test jar 0.0.10
junit : junit jar 4.12
org.assertj : assertj-core jar 3.6.1
org.mockito : mockito-core jar 2.3.0
org.slf4j : slf4j-simple jar 1.7.21

Project Modules

There are no modules declared in this project.

Build Status

DrinkWater

layer on top of camel to create and manage (micro)services easily

features:

  • not production ready
  • api still changing
  • create and test services fast

Get Started

from getstarted example

with maven

<!-- replace ${drinkwater.current.version} with the current version :-) -->
<dependency>
  <groupId>io.drinkwater</groupId>
  <artifactId>drinkwater-core</artifactId>
  <version>${drinkwater.current.version}</version>
</dependency>

create a service (needs an interface for now)

public interface ISimpleService {
    String ping(String message);
}

implement the interface

public class SimpleServiceImpl implements ISimpleService {

    public String prefix;

    @Override
    public String ping(String message) {
        return String.format("%s %s", prefix, message);
    }
}

configure the app

public class App extends ApplicationBuilder{
    public static void main(String[] args) throws Exception {
        Drinkwater.run(App.class);
    }

    @Override
    public void configure() {
        addService("test", ISimpleService.class, SimpleServiceImpl.class).asRest();
    }
}

add a properties file (drinkwater-application.properties) with the following content

test.prefix=pong

and run it.

next open link http://localhost:????/test/ping?message=hello

you should receive "pong hello"

Next

Versions

Version
0.0.10
0.0.9
0.0.8
0.0.7