NIO.2 : The new Path API in Java 7

Java Logo

In Java 7 we'll see a new API to manipulate file paths. This is part of the NIO.2 API.Instead of using the class java.io.File to manipulate a file of the file system of the computer we will now use the java.nio.file.Path class to manipulate a … [Read more...]

4 reasons i’m not using Osmorc anymore

IntelliJ Idea

After had many problems using Osmorc, the Intellij Idea plugin for OSGi support, i decided to no longer use it. Now, i make all manually.I have several reasons to not be satisfied of this plugin.First of all, this plugin display all the … [Read more...]

OSGi 4.2 Entreprise Release is available !

OSGi Logo

Hi,Yesterday, at EclipseCon, the OSGi EEG has finished the OSGi 4.2 Entreprise Release and made it publicly available. You can downlad it here.The news includes several new Entreprise use-cases and improves the OSGI programming model. Some … [Read more...]

Bundle non-OSGi dependencies with Maven

OSGi Logo

When we work with OSGi, a problem we always have is how to work with dependencies non OSGi Ready.This is not a really great problem because there we can work with. There is essentially two solutions :Embed the JAR files within the bundle. … [Read more...]

Mock objects with EasyMock

1. Introduction The mock objects allows to make unit tests on objects depending on other objects. We will replace this dependencies with mock objects. With that, we can by example verify than the method xyzzy() has been called 5 times and returned … [Read more...]

Pages: 1 2 3 4 5

Welcome to my new website !

Wordpress Logo

Hi,Welcome to my new english website :)I've moved all my english stuff from Developpez.com to make here a completely english website.I hope you'll find here some interesting stuff. I will publish articles and posts about Java, Spring, … [Read more...]

OSGi and cyclic dependencies

OSGi Logo

Hi,I'm currently working on the "bundlisation" of the JTheque Core. I choose to cut core into several bundles each one representing a service provided by the core.I quickly have experencied problems withI quickly realized that the … [Read more...]

The version 2.0 of Sonar has been released

Sonar Logo

The developers of Sonar have just released the version 2.0 of Sonar.Several major features :Architecture analysis : The architecture of the projects are now analyzed. We can see a matrix of project dependencies and a list of dependencies … [Read more...]

Manage focus with Swing in Java

1. Introduction The focus is the "selected" state of a component. The component who has the focus is the active component. It's possible to ask focus fror a specific component but normally this is perfectly managed by Swing.With this tutorial, … [Read more...]

Pages: 1 2 3 4

Tip : The bookmarks bar disappears on Google Chrome !

Chrome Logo

Hi,I Found that my bookmarks bar on Google Chrome disappear sometimes. This behavior is very confusing, is searched a few and i find that it was me that make it disappears and appears.On Google Chrome, you can hide/display the bookmarks bar … [Read more...]