Category Archives: Tutorial

Creating beautiful release notes with git, gradle and markdown

During the last days I asked myself how to generated releases notes from information that are available in commit  / tag messages from git. The decisions My first approach was to create the list of changes directly from the commit messages, but this approach has multiple drawbacks. The commit messages must be written very disciplined […]

 

7
Kudos
Don't
move!

Read more

Tutorial: Writing your own CDI extension

Today I will show you how to write a CDI extension. CDI provides a easy way for extending the functionality, like adding own scopes, enabling java core classes for extension, using the annotation meta data for augmentation or modification, and much more. In this tutorial we will implement an extension that will inject properties from […]

 

6
Kudos
Don't
move!

Read more

Tutorial: How to use JAX-RS and CDI together

Hi, because it’s relative hard to figure out, how to do it, I would like to show you how to combine JAX-RS and CDI. Preparation You need a Glassfish v3.x where we will run this application Gradle at least in version 1.0 Let’s start with a minimal application “The Greeter”. If you call “<your_host>/GreetMeWithJaxRSAndCDI/rest/greet/<NAME>” it […]

 

20
Kudos
Don't
move!

Read more

Tutorial: JUnit-Rule

Hi, as announced, here is the short tutorial for writing your own JUnit-Rule. JUnit provides with the @Rule and @ClassRule annotations a powerful way to reduce the boilerplate code for setting up structures / assumptions. It also removes, in the most cases, the requirement of using inheritance and replaces it with composition. Short overview A […]

 

2
Kudos
Don't
move!

Read more