Aspect Oriented Programming In Java ME

Magnus Robertsson

Do you want to structure your Java ME applications better? Aspect Oriented Programming is a cool technology that can modularize your applications and separate the verbose infrastructure code from the application logic. The only catch is that it doesn’t exist for Java ME. Or does it? Introduction Aspect Oriented Programming (AOP) is gaining popularity within [...]

Tags: , , , , ,

3DAudio – on mobile devices

Peter Winzell

Hear that chopper closing in on your troops? Turn your head and see… 3D Sound in your cellphone? Read this article to find out how it is done and how you make it happen on your phone. The ability to simulate spatial sound allows listeners to experience multimedia applications in “a captivating and natural way” [...]

Tags: , , ,

Qi4j – The domain model identity crisis

Rickard Öberg

The goal of modeling domain concepts through objects set by OOP has for a long time been handled in insufficient ways. What is the fundamental problem with how we have tried to do this so far? Is there a better way to deal with it? In this article we introduce the concept of Composite Oriented [...]

Tags: , , ,

JavaOne 2007 – What’s left?

Peter Neubauer

Having been at this years JavaOne, the event was impressive as always, but left me with a feeling of being mostly a marketing display for Sun and its partners, not for Java as a whole. I even had the feeling that within Java standard and enterprise computing, things are moving at the pace of evolution, [...]

Tags: ,

Mocking Static Methods

Jan Kronquist

Mock objects is a very useful technique for unit testing as it allows you to focus your testing efforts on the class being tested instead of on its collaborators. Unfortunately, not everything is an object and therefore you cannot always use mock objects. This article will show how mocking can be generalized to include more [...]

Tags: , ,

OSGi – not just a four letter word

You may have heard the word OSGi recently: perhaps on a technical blog, or in a passing conversation between developers. In the very near future words like OSGi, bundles, OSGi services and the service registry will be essential concepts that every web application developer and architect should know and understand. This article introduces OSGi, and [...]

Tags: , ,

Interview: Martin Fowler – man in the know

Björn Granvik

I am in search of an empty room at the Øredev conference. Normally this is an easy task, but I’ve got Martin Fowler on my tail. My mind is still blank. What on earth can I ask him that he hasn’t already written himself? Finally, an empty room, well almost. Another speaker, Erik Dörnenburg, is [...]

Tags: ,

Java ME Testing Done Right

Magnus Robertsson

Is there a right or wrong way to unit test applications? We believe so. Especially when it comes to testing Java ME applications. Down-scaled copies of our faithful testing frameworks are popping up everywhere in the Java ME community. But has anyone dared to ask the question: Why? The Problem Java Micro Edition (Java ME) [...]

Tags: , , , , ,

Essential Java Generics

Anders Janmyr

Once you get past simple usage of Java Generics and start implementing generic classes yourself it may seem quite intimidating. It is tricky, so it is important to remember a few rules. Subtyping The Liskov Substitution Principle, the rule that says that subclasses should be substitutable for their base classes, does not apply to generic [...]

Tags: , ,

Problems with object creation

Jan Kronquist

Every programming language has tricky details that you need to be aware of. This article will look at several such issues in Java related to the Java compiler. Test your Java skills and see if you know the answer! The problem A while ago a colleague of mine discovered a weird behavior when writing some [...]

Tags: , ,

JavaOne – for Embedded Devices

Johan Karlsson

The first Java version was made for embedded devices. However, Java has not made a big impact on the embedded space, apart from Java in mobile phones. A trend at JavaOne was that we could see Java in many different types of embedded devices. Could Java finally be used as it was intended? Among the [...]

Tags:

Spring LDAP – LDAP Programming in Java Made Simple

Mattias Hellborg Arthursson

The Java Naming and Directory Interface (JNDI) is for LDAP programming what Java Database Connectivity (JDBC) is for SQL programming. There are several similarities between JDBC and JNDI/LDAP (Java LDAP). Despite being two completely different APIs with different pros and cons, they share a number of less flattering characteristics: They require extensive plumbing code, even [...]

Tags: , , , ,

Making APIs usable

Mattias Ask

All APIs have end-users. How and whether these users use a certain API depends on how useful the API is to them. This in turn is determined by what problem the API solves, how easy it is to learn and understand, and how easy it is to use. This article will give some (perhaps obvious) [...]

Tags: , ,

JavaOne 2006 – almost in hindsight

Björn Granvik

JavaOne 2006 might be only a few months old, but a summer feels a like lot longer than that. What were the trends and are they still hot? JavaOne conferences seem to come in three different flavours – announcement, middle and final. Several “new” technologies made their finale this year; a graduation year. EJB 3, [...]

Tags: ,

Javaforum Malmö – now alive and kicking!

Björn Granvik

The Javaforum Malmö (re)opened at Jayway’s new office at Malmö one afternoon in March. The meeting set a new record for that conference room and filled it with ease. Some forty people checked in for this, the first Javaforum event in Malmö for several years. The audience was a mo- saic of around fifteen companies. [...]

Tags: , ,