Skip to content

Java code

aris alexis edited this page Feb 8, 2016 · 4 revisions

The project started a little bit before JDK 8 was officially announced and it contains some code that utilizes all the great new functional features but also code that doesn't.

Because the system is dealing with the frontend and mainly with JSON objects some stuff that could be enums and other structures are just plain public static String A="A".

The project is using Jersey 2.x with annotations. With Jersey comes HK2 which handles dependency injection. We use it throughout the project but where it is convenient a Factory class may be used such as in tests.

Interfaces are used for abstraction throughout the project so database or external services switch is more smooth.

Hibernate validator is used as standalone for POJOs hitting the endpoints (Jersey picks it up automatically).

Clone this wiki locally