io.drinkwater:components

create, test and use services fast

Лицензия

Лицензия

Группа

Группа

io.drinkwater
Идентификатор

Идентификатор

components
Последняя версия

Последняя версия

0.0.10
Дата

Дата

Тип

Тип

pom
Описание

Описание

create, test and use services fast

Скачать components

Имя Файла Размер
components-0.0.10.pom 1 KB
Обзор

Как подключить последнюю версию

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

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.slf4j : slf4j-api jar 1.7.21

test (4)

Идентификатор библиотеки Тип Версия
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

Модули Проекта

  • drinkwater-servlet
  • drinkwater-common
  • drinkwater-core
  • drinkwater-test
  • drinkwater-cdi
  • drinkwater-rest
  • drinkwater-helper
  • drinkwater-api
  • drinkwater-datastore
  • drinkwater-datastore-dbcp
  • drinkwater-datastore-postgres-embedded

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

Версии библиотеки

Версия
0.0.10
0.0.9
0.0.8
0.0.7