Category Archives: Java

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

Make Retrofit ready for usage in OSGi

Retrofit is a really great library for addressing  REST APIs. It is often used for Android apps, because it is really lightweight and easy to use. I’d also love to use this library for my Eclipse 4 RCP applications, so … Continue reading

Posted in Eclipse, Java, OSGi, Simon Scholz | Comments Off on Make Retrofit ready for usage in OSGi

Eclipse Hackathon Hamburg, January, 23rd 2015

We like to announce this coming Eclipse event again, since this is such a great Eclipse community event. So please don’t miss the change to be a part of it. In Hamburg and its surroundings there are so many Eclipse … Continue reading

Posted in Eclipse, Java, Other, Simon Scholz, vogella | Tagged , , | Comments Off on Eclipse Hackathon Hamburg, January, 23rd 2015

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

LanguageTool

The mission of vogella is to provide everyone with developer knowledge in plain simple English whether by online tutorials, books or training materials. Improving the text quality is a constant endeavour. It has to be done, because flawed texts become hard … Continue reading

Posted in Eclipse, Java, Matthias Mailänder, vogella | Comments Off on LanguageTool