Action Context
When I designed my action object system, I only imagined the possibility that an action would impact a single entity. In the end, this is what you also would imagine with a traditional REST endpoint.
Search for a command to run...
Articles tagged with #java
When I designed my action object system, I only imagined the possibility that an action would impact a single entity. In the end, this is what you also would imagine with a traditional REST endpoint.
In a previous blog post, I introduced my new approach regarding updating objects. Instead of just performing the updates in the service, I approached it in a true object oriented approach and made act
Everyone agrees with the fact that having some global state is a bad idea and should be avoided. The cases in which this is really the only option are very limited. One case however, is in Spring wher
In Java, we have two types of exceptions, checked exceptions and runtime exceptions (I am not including the Error class). The only difference between these two types, is that the checked exception is part of the signature of the method and must be ha...
As I have mentioned in some earlier blog posts, the usage of Spring puts a lot of focus of having your logic in services. While this makes sense for some things, it comes with the big issue that your objects don't enforce anything and if you bypass y...
When using Spring or a similar framework, which most Java Web applications use, the usage of dependency injection heavily leans into writing all of your logic in services instead of objects. When you embrace the service oriented approach, you may end...