From 736661d9568c9c7a9b9c512ef4aae31c905f5955 Mon Sep 17 00:00:00 2001 From: Tilen Faganel Date: Tue, 19 Sep 2017 22:05:32 +0200 Subject: [PATCH] Added the KumuluzEE implementation for the schedule microservice Signed-off-by: Tilen Faganel --- README.adoc | 31 +++ microservice-schedule-kumuluzee/LICENSE.txt | 201 ++++++++++++++++++ microservice-schedule-kumuluzee/README.adoc | 34 +++ microservice-schedule-kumuluzee/pom.xml | 170 +++++++++++++++ .../src/main/fabric8/app-deployment.yaml | 22 ++ .../src/main/fabric8/app-route.yaml | 8 + .../src/main/fabric8/app-svc.yaml | 9 + .../showcase/schedule/CORSFilter.java | 37 ++++ .../showcase/schedule/model/Schedule.java | 127 +++++++++++ .../model/adapters/DurationAdapter.java | 30 +++ .../model/adapters/LocalDateAdapter.java | 31 +++ .../model/adapters/LocalTimeAdapter.java | 30 +++ .../schedule/persistence/ScheduleDAO.java | 146 +++++++++++++ .../schedule/resources/ScheduleResource.java | 117 ++++++++++ .../showcase/schedule/rest/Application.java | 34 +++ .../src/main/resources/META-INF/beans.xml | 21 ++ .../resources/ScheduleResourceClientIT.java | 182 ++++++++++++++++ pom.xml | 11 + 18 files changed, 1241 insertions(+) create mode 100644 microservice-schedule-kumuluzee/LICENSE.txt create mode 100644 microservice-schedule-kumuluzee/README.adoc create mode 100644 microservice-schedule-kumuluzee/pom.xml create mode 100644 microservice-schedule-kumuluzee/src/main/fabric8/app-deployment.yaml create mode 100644 microservice-schedule-kumuluzee/src/main/fabric8/app-route.yaml create mode 100644 microservice-schedule-kumuluzee/src/main/fabric8/app-svc.yaml create mode 100644 microservice-schedule-kumuluzee/src/main/java/io/microprofile/showcase/schedule/CORSFilter.java create mode 100644 microservice-schedule-kumuluzee/src/main/java/io/microprofile/showcase/schedule/model/Schedule.java create mode 100644 microservice-schedule-kumuluzee/src/main/java/io/microprofile/showcase/schedule/model/adapters/DurationAdapter.java create mode 100644 microservice-schedule-kumuluzee/src/main/java/io/microprofile/showcase/schedule/model/adapters/LocalDateAdapter.java create mode 100644 microservice-schedule-kumuluzee/src/main/java/io/microprofile/showcase/schedule/model/adapters/LocalTimeAdapter.java create mode 100644 microservice-schedule-kumuluzee/src/main/java/io/microprofile/showcase/schedule/persistence/ScheduleDAO.java create mode 100644 microservice-schedule-kumuluzee/src/main/java/io/microprofile/showcase/schedule/resources/ScheduleResource.java create mode 100644 microservice-schedule-kumuluzee/src/main/java/io/microprofile/showcase/schedule/rest/Application.java create mode 100644 microservice-schedule-kumuluzee/src/main/resources/META-INF/beans.xml create mode 100644 microservice-schedule-kumuluzee/src/test/java/io/microprofile/showcase/schedule/resources/ScheduleResourceClientIT.java diff --git a/README.adoc b/README.adoc index 88c97252..3222e33d 100644 --- a/README.adoc +++ b/README.adoc @@ -118,7 +118,38 @@ cd microservice-schedule mvn -Pliberty package java -jar target/microservice-schedule-liberty.jar ``` +=== microservice-schedule-kumuluzee +Provided using link:https://ee.kumuluz.com/[KumuluzEE 2.4.1] +*Build and run the service* +``` +cd microservice-schedule-kumuluzee +mvn clean package +java [-D