Commit d80a5f9c authored by Andreas König's avatar Andreas König
Browse files

renamed packages

parent 4ce1c27e
......@@ -2,8 +2,8 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>ch.bergturbenthal.display.test</groupId>
<groupId>ch.panter.display</groupId>
<artifactId>display</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
......@@ -44,12 +44,12 @@
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
......
package ch.bergturbenthal.display.test;
package ch.panter.display;
import java.time.Duration;
import java.time.Instant;
......@@ -10,9 +10,9 @@ import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import ch.bergturbenthal.display.test.controller.DisplayController;
import ch.bergturbenthal.display.test.properties.ApplicationProperties;
import ch.bergturbenthal.display.test.service.impl.DefaultDisplayService;
import ch.panter.display.controller.DisplayController;
import ch.panter.display.properties.ApplicationProperties;
import ch.panter.display.service.impl.DefaultDisplayService;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docket;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
......
package ch.bergturbenthal.display.test;
package ch.panter.display;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
......
package ch.bergturbenthal.display.test.consumer;
package ch.panter.display.consumer;
import java.awt.Color;
import java.awt.Font;
......@@ -23,13 +23,13 @@ import java.util.function.Supplier;
import org.springframework.scheduling.annotation.Scheduled;
import ch.bergturbenthal.display.test.display.Display;
import ch.bergturbenthal.display.test.display.DrawContext;
import ch.bergturbenthal.display.test.model.ClockView;
import ch.bergturbenthal.display.test.model.Mutation;
import ch.bergturbenthal.display.test.model.RemoveView;
import ch.bergturbenthal.display.test.model.TextView;
import ch.bergturbenthal.display.test.model.View;
import ch.panter.display.display.Display;
import ch.panter.display.display.DrawContext;
import ch.panter.display.model.ClockView;
import ch.panter.display.model.Mutation;
import ch.panter.display.model.RemoveView;
import ch.panter.display.model.TextView;
import ch.panter.display.model.View;
import lombok.Value;
import lombok.extern.slf4j.Slf4j;
......
package ch.bergturbenthal.display.test.controller;
package ch.panter.display.controller;
import java.util.Collection;
......@@ -6,7 +6,7 @@ import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import ch.bergturbenthal.display.test.service.DisplayService;
import ch.panter.display.service.DisplayService;
@RestController
@RequestMapping(path = "display", produces = "application/json")
......
package ch.bergturbenthal.display.test.controller;
package ch.panter.display.controller;
import java.util.Collection;
import java.util.UUID;
......@@ -14,11 +14,11 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import ch.bergturbenthal.display.test.model.RemoveView;
import ch.bergturbenthal.display.test.model.View;
import ch.bergturbenthal.display.test.model.dto.ViewDto;
import ch.bergturbenthal.display.test.service.MutationDispatcher;
import ch.bergturbenthal.display.test.service.ViewOverview;
import ch.panter.display.model.RemoveView;
import ch.panter.display.model.View;
import ch.panter.display.model.dto.ViewDto;
import ch.panter.display.service.MutationDispatcher;
import ch.panter.display.service.ViewOverview;
@RestController
@RequestMapping(path = "view", produces = "application/json")
......
package ch.bergturbenthal.display.test.display;
package ch.panter.display.display;
public interface Display {
DrawContext createContext();
......
package ch.bergturbenthal.display.test.display;
package ch.panter.display.display;
import java.awt.Graphics2D;
......
package ch.bergturbenthal.display.test.display.impl;
package ch.panter.display.display.impl;
import java.awt.Graphics2D;
import java.awt.RenderingHints;
......@@ -17,8 +17,8 @@ import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.SocketAddress;
import ch.bergturbenthal.display.test.display.Display;
import ch.bergturbenthal.display.test.display.DrawContext;
import ch.panter.display.display.Display;
import ch.panter.display.display.DrawContext;
import lombok.Cleanup;
public class RowDisplay implements Display {
......
package ch.bergturbenthal.display.test.model;
package ch.panter.display.model;
import java.time.Duration;
import java.time.Instant;
......
package ch.bergturbenthal.display.test.model;
package ch.panter.display.model;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonSubTypes.Type;
......
package ch.bergturbenthal.display.test.model;
package ch.panter.display.model;
import lombok.NonNull;
import lombok.Value;
......
package ch.bergturbenthal.display.test.model;
package ch.panter.display.model;
import java.time.Duration;
import java.time.Instant;
......
package ch.bergturbenthal.display.test.model;
package ch.panter.display.model;
import java.time.Duration;
import java.time.Instant;
......
package ch.bergturbenthal.display.test.model.dto;
package ch.panter.display.model.dto;
import java.time.Duration;
import java.time.Instant;
......@@ -6,9 +6,9 @@ import java.time.Instant;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonFormat.Shape;
import ch.bergturbenthal.display.test.model.ClockView;
import ch.bergturbenthal.display.test.model.TextView;
import ch.bergturbenthal.display.test.model.View;
import ch.panter.display.model.ClockView;
import ch.panter.display.model.TextView;
import ch.panter.display.model.View;
import lombok.NonNull;
import lombok.Value;
......
package ch.bergturbenthal.display.test.properties;
package ch.panter.display.properties;
import java.io.File;
import java.util.HashMap;
......
package ch.bergturbenthal.display.test.properties;
package ch.panter.display.properties;
import lombok.Data;
......
package ch.bergturbenthal.display.test.service;
package ch.panter.display.service;
import java.util.Collection;
......
package ch.bergturbenthal.display.test.service;
package ch.panter.display.service;
import ch.bergturbenthal.display.test.model.Mutation;
import ch.panter.display.model.Mutation;
public interface MutationDispatcher {
void sendEvent(Mutation mutation);
......
package ch.bergturbenthal.display.test.service;
package ch.panter.display.service;
import java.util.Collection;
import ch.bergturbenthal.display.test.model.View;
import ch.panter.display.model.View;
public interface ViewOverview {
View getView(String id);
......
package ch.bergturbenthal.display.test.service.impl;
package ch.panter.display.service.impl;
import java.net.InetSocketAddress;
import java.net.SocketAddress;
......@@ -14,12 +14,12 @@ import javax.annotation.PreDestroy;
import org.springframework.stereotype.Service;
import ch.bergturbenthal.display.test.consumer.DisplayConsumer;
import ch.bergturbenthal.display.test.display.impl.RowDisplay;
import ch.bergturbenthal.display.test.model.Mutation;
import ch.bergturbenthal.display.test.properties.ApplicationProperties;
import ch.bergturbenthal.display.test.properties.DisplayProperties;
import ch.bergturbenthal.display.test.service.DisplayService;
import ch.panter.display.consumer.DisplayConsumer;
import ch.panter.display.display.impl.RowDisplay;
import ch.panter.display.model.Mutation;
import ch.panter.display.properties.ApplicationProperties;
import ch.panter.display.properties.DisplayProperties;
import ch.panter.display.service.DisplayService;
@Service
public class DefaultDisplayService implements DisplayService, Consumer<Mutation> {
......
package ch.bergturbenthal.display.test.service.impl;
package ch.panter.display.service.impl;
import java.io.BufferedReader;
import java.io.File;
......@@ -26,9 +26,9 @@ import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.ObjectReader;
import com.fasterxml.jackson.databind.ObjectWriter;
import ch.bergturbenthal.display.test.model.Mutation;
import ch.bergturbenthal.display.test.properties.ApplicationProperties;
import ch.bergturbenthal.display.test.service.MutationDispatcher;
import ch.panter.display.model.Mutation;
import ch.panter.display.properties.ApplicationProperties;
import ch.panter.display.service.MutationDispatcher;
import lombok.Cleanup;
@Service
......
package ch.bergturbenthal.display.test.service.impl;
package ch.panter.display.service.impl;
import java.time.Instant;
import java.util.Collection;
......@@ -9,10 +9,10 @@ import java.util.function.Consumer;
import org.springframework.stereotype.Service;
import ch.bergturbenthal.display.test.model.Mutation;
import ch.bergturbenthal.display.test.model.RemoveView;
import ch.bergturbenthal.display.test.model.View;
import ch.bergturbenthal.display.test.service.ViewOverview;
import ch.panter.display.model.Mutation;
import ch.panter.display.model.RemoveView;
import ch.panter.display.model.View;
import ch.panter.display.service.ViewOverview;
@Service
public class DefaultOverview implements ViewOverview, Consumer<Mutation> {
......
package ch.bergturbenthal.display.test;
package ch.panter.display;
import java.time.Duration;
import java.time.Instant;
......@@ -12,9 +12,10 @@ import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableScheduling;
import ch.bergturbenthal.display.test.model.ClockView;
import ch.bergturbenthal.display.test.model.TextView;
import ch.bergturbenthal.display.test.service.MutationDispatcher;
import ch.panter.display.ApplicationConfiguration;
import ch.panter.display.model.ClockView;
import ch.panter.display.model.TextView;
import ch.panter.display.service.MutationDispatcher;
import lombok.extern.slf4j.Slf4j;
@Slf4j
......
package ch.bergturbenthal.display.test;
package ch.panter.display;
import org.junit.Test;
import org.junit.runner.RunWith;
......
package ch.bergturbenthal.display.test;
package ch.panter.display;
import java.awt.Color;
import java.awt.Font;
......@@ -16,8 +16,8 @@ import java.time.format.DateTimeFormatter;
import java.time.format.FormatStyle;
import java.util.Collections;
import ch.bergturbenthal.display.test.display.DrawContext;
import ch.bergturbenthal.display.test.display.impl.RowDisplay;
import ch.panter.display.display.DrawContext;
import ch.panter.display.display.impl.RowDisplay;
import lombok.extern.slf4j.Slf4j;
@Slf4j
......
package ch.bergturbenthal.display.test;
package ch.panter.display;
import java.io.IOException;
import java.time.Duration;
......@@ -15,11 +15,11 @@ import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.ObjectReader;
import com.fasterxml.jackson.databind.ObjectWriter;
import ch.bergturbenthal.display.test.model.ClockView;
import ch.bergturbenthal.display.test.model.Mutation;
import ch.bergturbenthal.display.test.model.RemoveView;
import ch.bergturbenthal.display.test.model.TextView;
import ch.bergturbenthal.display.test.model.View;
import ch.panter.display.model.ClockView;
import ch.panter.display.model.Mutation;
import ch.panter.display.model.RemoveView;
import ch.panter.display.model.TextView;
import ch.panter.display.model.View;
import lombok.extern.slf4j.Slf4j;
@Slf4j
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment