Category Archives: Java

OSGi Event Admin – Publish & Subscribe

In this blog post I want to write about the publish & subscribe mechanism in OSGi, provided via the OSGi Event Admin Service. Of course I will show this in combination with OSGi Declarative Services, because this is the technology … Continue reading

Posted in Dirk Fauth, Eclipse, Java, OSGi | 2 Comments

Access OSGi Services via web interface

In this blog post I want to share a simple approach to make OSGi services available via web interface. I will show a simple approach that includes the following: Embedding a Jetty  Webserver in an OSGi application Registering a Servlet … Continue reading

Posted in Dirk Fauth, Eclipse, Java, OSGi | 5 Comments

OSGi Declarative Services news in Eclipse Oxygen

With this blog post I want to share my excitement about the OSGi DS related news that are coming with Eclipse Oxygen. I want to use this blog post to inform about the new features and also the changes you … Continue reading

Posted in Dirk Fauth, Eclipse, Java, OSGi | 1 Comment

Control OSGi DS Component Instances via Configuration Admin

While trying to clean up the OSGi services in the Eclipse Platform Runtime I came across the fact that singleton service instances are not always feasible. For example the fact that the localization is done on application level does not work … Continue reading

Posted in Dirk Fauth, Eclipse, Java, OSGi | 1 Comment

Control OSGi DS Component Instances

I recently came across some use cases where a more fine grained control is needed for component instance creation. I spent some time in investigating how this is done with OSGi Declarative Services in detail. It turned out that it … Continue reading

Posted in Dirk Fauth, Eclipse, Java, OSGi | 2 Comments

OSGi Component Testing

In my last blog post I talked about Getting Started with OSGi Declarative Services. In this blog post I want to show how to test OSGi service components. Unit testing / “white-box testing” The first approach for testing components is … Continue reading

Posted in Dirk Fauth, Eclipse, Java, OSGi | Comments Off on OSGi Component Testing

Migration to JUnit 4

When you’re facing the issue to migrate your JUnit 3 tests to JUnit 4, it can be very annoying, because of course you all have a lot of tests. 😉 In general it is a mindless task to migrate things … Continue reading

Posted in Eclipse, Java, Simon Scholz | Tagged , , , | Comments Off on Migration to JUnit 4

Accessing the caller information of a method in Java code

Sometimes it is nice to access the caller of a method. Doing this is relatively simple, you can use the getStackTrace() method on the current thread. This returns the call stack in reverse order, e.g. the first element is the … Continue reading

Posted in Java | Tagged | 3 Comments

Porting Eclipse 3.x RCP application to Eclipse 4.4 – now without QuickAccess box

Lots of Eclipse 3.X RCP application which switched to Eclipse 4 as runtime complained that they get the QuickAccess search bar of the Eclipse IDE for “free”. Thanks to René Brandstetter for solving Bug 411821 this does not happen automatically … Continue reading

Posted in Eclipse, Java, Lars Vogel | Comments Off on Porting Eclipse 3.x RCP application to Eclipse 4.4 – now without QuickAccess box

Eclipse Internationalization Part 1/4 – Current Situation by Dirk Fauth

If you are developing Eclipse applications and plugins for users around the world, you should prepare them to be translated into several languages. While in other frameworks this process is quite straight forward (think of any webframework you know), in … Continue reading

Posted in Dirk Fauth, Eclipse, Java, OSGi | Comments Off on Eclipse Internationalization Part 1/4 – Current Situation by Dirk Fauth