Category: Articles
Creating a simple OSGI Bundle By Hand
As a bit of an experiment I tried to create an OSGI Bundle by hand and run it with Apache Felix.
Continue Reading...Inherited Jackson Serializers
Looking at the Jackson Serializer post, it does introduce a particular code smell as it uses if statements to check the type of object and take a different action based on that type. Normally, that is indicative of the need to implement the action in the class and/or subclasses. However, this is serialization and we […]
Continue Reading...Introduction to Jackson Serializers
Jackson is a framework that provides the means to read and write objects to and from JSON. Typically, it tries to use built in support for common classes and simple types. It will also use a default serializer based on reflection to write the JSON, but will need some guidance for more complex custom objects. […]
Continue Reading...Modifying Immutable Objects with Chained Methods
When you are coding with immutable objects, there are many times where you not only need to initially define them but may want to create derivative versions of an existing instance. You might want to consider using chained methods to make your code more concise or to take advantage of default or optional parameters.
Continue Reading...AWS Builders Day 2018 – Manchester
A write up of my experience at the AWS Builders Day 2018 in Manchester
Continue Reading...Implementing Chained Methods with Inheritance
Chained methods are class methods that return the instance of the object so you can call another method on the same object. This article looks at the problems you can face with implementing classes with chained methods in Java when using inheritance, and how to solve them.
Continue Reading...Java Concurrency – Introduction
First in a series on concurrency and describes some of the problems with concurrency in our code and simple ways we can fix them. While there are far more complex problems that require more advanced solutions they all share the same principles and in many cases, are rooted in these basic solutions.
Continue Reading...Exonerating the JSF Lifecycle
One of the many accusations aimed at JSF is the definition and complexity of the JSF Lifecycle. The JSF lifecycle is responsible for processing the page creation and submission and orchestrates the different pieces of the framework. A more thorough description of the process can be found in this article by Rick Hightower. At a […]
Continue Reading...Auditing Entities With JPA Events
This article shows how you can leverage JPA Lifecycle Events to automate the filling in of audit information. The first example uses a base entity class with lifecycle events that looks for a time stamp interface to determine whether the entity is audited.
Continue Reading...Growing up a programmer in the 80s
Despite the fact that there are plenty of free languages and development tools available online, there is still a much larger barrier to entry for someone who wants to get started as a programmer compared to nearly 30 years ago. I have fond memories of the computing of the 80s so I thought I’d take […]
Continue Reading...