O'Reilly logo

Mastering Eclipse Plug-in Development by Dr. Alex Blewitt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Best practices

This section covers some of the best practices that can be applied when designing modular systems, and in particular, modular applications that are built on either OSGi or using the standard Eclipse extension mechanisms.

Separate API and implementation

It is very common for OSGi applications to have a separate API and implementation. This allows the API to be versioned independently from any implementations that may follow.

To implement this effectively, most APIs are specified in terms of pure Java interfaces. However, it is possible that classes are present as well; exceptions must be represented as classes, as are common POJO data structures.

Eclipse documents the interfaces that are not suitable to implement and the POJOs that are ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required