Java
-
Spring Scoped Proxy
Consider two Spring beans defined this way: @Component class SingletonScopedBean{ @Autowired private PrototypeScopedBean prototypeScopedBean; public String getState(){ return this.prototypeScopedBean.getState(); }…
Read More » -
Integrating JavaFX and Swing
I’ve just finished rewriting a component of my app that was using Swing and now is using JavaFX, I’ve ended…
Read More » -
Observer Pattern with Spring Events
INTRODUCTION The essence of the Observer Pattern is to ‘Define a one-to-many dependency between objects so that when one object…
Read More » -
Which Java thread consumes my CPU?
What do you do when your Java application consumes 100% of the CPU? Turns out you can easily find the…
Read More » -
Gradle Custom Plugin
This tutorial describes the way of creating Gradle standalone custom plugin. It covers the following topics Creating task, and using…
Read More » -
Java memes which refuse to die
Also titled; My pet hates in Java coding. There are a number of Java memes which annoy me, partly because…
Read More » -
Rewrite to the edge – getting the most out of it! On GlassFish!
A great topic for modern application development is rewriting. Since the introduction of Java Server Faces and the new lightweight…
Read More » -
Customizing Spring Data JPA Repository
Spring Data is a very convenient library. However, as the project as quite new, it is not well featured. By…
Read More » -
How to install Gradle
Gradle is a simple and yet strong build tool. It is similar to the Ant build tool. It manages the…
Read More »