Skip to main content

Markus Karg

Born in 1973, Markus Karg graduated from German information technology college in business informatics with specialisation on systems and networks in 1997. He is talking Java since the same year and contributes to several open source projects. Following his focus of interest, distributed systems, he is employed as the design and implementation lead of a medium-sized ISV. From time to time he is publishing about software technology, like in this blog or German magazines. In his rare sparetime, he enjoys to have breakfast out in a cafe with the love of his life, which he married in 2001.

 

mkarg's blog

WebDAV Support for JAX-RS 1.2

Posted by mkarg on March 1, 2014 at 5:23 PM PST

It actually happened a few weeks ago already, but I simply didn't find the time to spread the word earlier -- just too much other stuff to do (see end of posting), so I tell you now: WebDAV Support for JAX-RS 1.2 is out!

What has happened since 1.1?

Reanimating Zombie Projects Vol. I: Hamcrest Reflection

Posted by mkarg on December 27, 2013 at 9:14 PM PST

One day I found myself in the situation that I had to write a unit test which checks whether my code is annotated in a particular way. I wondered how one could do that without doing an integration test that actually processes that annotations. My first idea was to use the Reflection API, which in fact worked, but was not looking smart.

The end was near (once more)

Posted by mkarg on January 1, 2013 at 7:18 AM PST

Some time ago, I had the impression that everywhere I stepped in the endless Java universe, I came across rather outdated technology. Things that were hyped years back, but for some reason had been left behind by mankind in the course of time. Disenchantedly roaming that programming desert I almost went depressive looking at all the rusty wrecks of former featured APIs laying around all along.

Generic Visitor Pattern for download on Maven Central

Posted by mkarg on October 3, 2012 at 1:24 AM PDT

As this JavaRanch article by Mark Spritzler proofs, there seem to be some people that like to have a generic visitor pattern, so I decided to open source mine (LGPL), which lies around here on my disk for some time. Have fun using it, it is as simple as linking to:

<dependency>
    
  
  

JGoodies now to be found on Maven Central Repository

Posted by mkarg on September 7, 2012 at 11:02 PM PDT

Swing is not dead, still. While a whole lot of evangelists try to talk it dead, it is still part of the JRE. While SWT is not, still. And while JavaFX is not, still. Dispite all hypes and rumors. It is not even declared to be deprecated or obsolete. So in fact, there is no other real alternative to Swing as long as the GUI must work solely with JRE means (I won't say AWT is an alternative).

Range<T> class now available in The Central Maven Repository

Posted by mkarg on September 7, 2012 at 6:14 AM PDT

I hate adding lots of huge multi-JAR all-purpose common libraries to rather small projects! Huge footprint just for a single class is a side effect of many popular frameworks, unfortunately, due to rather coarse-grained modularity. So I started to publish some of my commons (LPGL'ed) code as single-class self-contained artifacts on The Maven Central Repository.

hamcrest-reflection uploaded to Maven Central

Posted by mkarg on September 1, 2012 at 1:31 AM PDT

It eventually happened that I had to ensure that a class of mine is annotated in a particular way (I didn't want to bind the whole framework that uses the annotation just to ensure this single issue, as this was a unit test but not an integration test). So I wrote my own Hamcrest matcher with few pieces of reflection inside.

JAXB Singletons Made Easy

Posted by mkarg on January 14, 2012 at 9:22 AM PST

You want JAXB to unmarshal singletons? You already spent lots of time coding rather complex workarounds applying XmlAdapters and afterUnmarshal callbacks? The solution is astonishingly simple. Possibly so simple that nobody in the JAXB team ever thought it would be necessary to put the word "singleton" somewhere next to the JavaDocs for this... Anyways, here is the solution:

JAX-RS 2.0: A first interim report

Posted by mkarg on July 24, 2011 at 10:55 AM PDT

JAX-RS 2.0: A first interim report

It's been a few months already that the expert group of JSR 339 started discussion about the details of JAX-RS 2.0. The target defined by spec lead Oracle are clear: Java EE 7 shall have a RESTful API that augments current JAX-RS 1.1 API by (among others) a Client API, HATEOAS support and asynchronous invocations. So what's the status with state?

Dead Technology Everywhere I Go

Posted by mkarg on April 24, 2011 at 4:14 AM PDT

Sometimes I wonder why rather good technology suddenly dies. Does anybody remember InfoBus? JavaBeans? Swing? Java?

All of those had been brilliant technologies, enabling programmers doing things really easily. But at one day, news about those technologies just stopped. People tend to say that those technologies "died". Well, what does that mean, and is that true?