equinox Tag

I was working with a client recently and the question of what are execution environments came up. Execution environments (EEs) are simply symbolic representations of JREs. For example, rather than talking about a specific JRE (with a specific name at a specific location on your disk), you can talk about the J2SE-1.4 execution environment. This way things can be shared without referencing specific paths. Furthermore,...

Read More

In an OSGi-based system, there are cases when you want to do some heavy refactoring but run the risk of breaking downstream clients. For example, let's say you have plug-in A, it exports the com.company.util package. Now let's pretend this package contains utility methods for math functions and logging. Now let's say you have a request to break apart the math and logging code into...

Read More

Ever use the OSGi console included in Eclipse (i.e., run the eclipse executable with -console)? Ever wanted to add your own console commands for your application? If so, the process is pretty easy and straightforward. The first step is to implement the CommandProvider interface. Here is a simple and fun example: [code lang="java"] package com.code9.examples.console; import org.eclipse.osgi.framework.console.CommandInterpreter; import org.eclipse.osgi.framework.console.CommandProvider; public class MyCommandProvider implements CommandProvider { public Object _iddqd(CommandInterpreter intp) { intp.println("Immortal mode enabled"); ...

Read More