Sandboxing plugins in Java
Some Java applications need to be able to load plugins, in the form of .jar files, from untrusted sources, and execute code from such plugins with restricted permissions, for example such that the code...
View Article‘Default’ Oracle JVM Flags
Launching a Java Virtual Machine can be as easy as running java -classpath myapp.jar Main or even shorter java -jar myapp.jar if your using the Main-Class attribute in META-INF/MANIFEST.MF. This...
View ArticleIntegration Testing a Spring Boot Application
Spring Boot brings about some welcome defaults configurations that significantly decreases the development time of Spring projects. It also has some useful additions when it comes to simplified...
View ArticleSpring Boot custom HealthIndicator
A big part of the DevOps responsibilities is to monitor and maintain the health of running servers. If a production server goes down, appropriate actions must be undertaken to bring the service back to...
View ArticleCombining a Site and API in Compojure
It’s often useful to have both an API and a website serving HTML in the same project. Compojure is a popular routing library in Clojure built on top of the Ring web server abstraction. […]
View ArticleIntegration Testing Setup with Midje and Leiningen
Writing good tests is something that is important in virtually all software projects. In this blog we’ll use Midje and Leiningen for integration testing. Midje is a test framework for Clojure whose...
View ArticleAsynchronous Spring Service
It is not unusual that your web service needs to communicate with another web service in order to serve its clients. In the old days, that would imply that an incoming request to your […]
View ArticleJava 8 Collector for Gauva’s LinkedHashMultimap
10 months ago or so I wrote a blog post entitled Immutable List Collector in Java 8 (that probably should have been named “Unmodifiable List Collector in Java 8″ to be more precise) that […]
View ArticleNotes about learning Elixir
When I first heard about Elixir at Øredev 2012 I thought it was nice, but I didn’t really get it. I remember thinking than Elixir was like Ruby for the Erlang Virtual Machine. However, […]
View ArticleSpring Boot Error Responses
I have written about Spring’s support for web response error handling a few times before (e.g. about custom error responses and how they can be generalized). This time, we will take a look at […]
View ArticleUsing another JUnit Runner with PowerMock
PowerMock 1.6.0 was released a couple of days ago and the main new feature expect for better support for Mockito 1.10.x is the ability to combine the PowerMockRunner with another JUnit runner without...
View ArticlejUnit @Rule and Spring Caches
If you have worked a while with jUnit you may have seen jUnit Rules. Simply put, a field in a test class annotated with @Rule is a class that lets you execute some code […] The post jUnit @Rule and...
View ArticleAndroid RecyclerView – Simple List
RecyclerView The replacement for ListView, GridView and a couple of other components. To gain good performance you need to implement the ViewHolder pattern unfortunately there is a lot of ways to mess...
View ArticleScaling out with Spring Session
Stateless architecture has become increasingly popular during resent years and for good reasons. However, stateful session based applications continue to play an important role, for example when...
View ArticleAndroid App Development Keeping it Simple
I get a lot of questions from “newbies” on how to best approach app development. I think the best way is to keep it simple, so this is my approach on app development, surely […] The post Android App...
View ArticleAspectJ and AOP – The black magic of programming
Index This post is part of an series of posts about AspectJ and AOP. AspectJ – Dictionary [this post] The basics of AOP Defining pointcuts by pattern Defining pointcuts by annotations Using annotations...
View ArticleThe basics of AOP
Index This post is part of an series of posts about AspectJ and AOP. AspectJ – Dictionary The basics of AOP [this post] Defining pointcuts by pattern Defining pointcuts by annotations Using annotations...
View ArticleDefining pointcuts by pattern
Index This post is part of an series of posts about AspectJ and AOP. AspectJ – Dictionary The basics of AOP Defining pointcuts by pattern [this post] Defining pointcuts by annotations Using annotations...
View ArticleDefining pointcuts by annotations
Index This post is part of an series of posts about AspectJ and AOP. AspectJ – Dictionary The basics of AOP Defining pointcuts by pattern Defining pointcuts by annotations [this post] Using annotations...
View ArticleUsing annotations element-value pairs in AspectJ
Index This post is part of an series of posts about AspectJ and AOP. AspectJ – Dictionary The basics of AOP Defining pointcuts by pattern Defining pointcuts by annotations Using annotations...
View Article