Modularization is a long overdue feature of Java. It has been a major challenge, and the effort has taken many years.Continue reading
You may have already used some of the text formatting classes and methods in Java, such as
String.format() and the
And then you move from Java 8 to Java 11, and you get unexpected results.Continue reading
AOP Around Advice Example
Last week we implemented simple AOP using the Spring AOP
@Aspect annotation. I left out all the Spring container details because I just wanted to focus on the actual aspect code.
This week I’ll implement around advice using both Spring AOP and the JEE/EJB AOP using the Interceptor API.Continue reading
Last week I covered the concepts and terminology of aspect-oriented programming. As promised, this week I’ll illustrate the main AOP concepts with some code examples.
How we actually implement AOP programmatically will depend on the framework/container we’re using. There are many implementations, including AspectJ, JBoss AOP and Spring AOP.
For the sake of simplicity, I’ll use AspectJ annotated classes as used by the Spring AOP as the examples. If you use a different implementation, your code may be a little different.Continue reading
You may have heard the term “AOP”, but not yet understand what it is and where it fits into your development. In this post I introduce the concept and some terms. In the next post we’ll look at some examples.Continue reading
This week’s post rounds off the IoC/DI mini-series by looking at some of the other IoC mechanisms. I have already mentioned that DI was only one of the available IoC mechanisms.Continue reading
Inversion of control (IoC) is a mechanism used to externalise the creation and management of component dependencies.
What a mouthful! What does that mean? Isn’t there a simpler explanation?
The concept is actually very simple: IoC gives a component the objects it needs to do its job.Continue reading
Maybe you’ve got a system that’s running perfectly on Java 8, but you may need/want to move to Java 11. Often when you migrate from an older Java version to a later version, you bump your head on some migration problems. In this tip, I’m going to focus on one problem that jumped out and hit me a while ago.Continue reading
You may have heard of static code analysis, and even have it in your build files. But what is it, and why is it important?Continue reading