I want to create a test server for my application. Using embedding Http server in equinox is my first option. I had experience using simple http service implementation of equinox, however I want to play with Jetty this time. Following the guide of Equinox server, I can't running a Jetty server with my servlet in …
Read MoreThe IPreferenceStore API of Eclipse is based on OSGi's preferences service. Equinox implements several scope context for different preferences, such DefaultScope, InstanceScope and ConfigurationScope. The IPreferenceStore is the wrapper of instance scope for back-compatibility. It stored the data in …
Read MoreSet vm arguments 'osgi.framework.extensions' and 'osgi.frameworkClassPath' when vm starts. If those value are set, those jar or path would be added into the classloader when starting EclipseStarter. See org.eclipse.equinox.launcher.Main for more details in the source code of Eclipse 3.4. Best Regards Kane
Read MoreEquinox uses the adaptor hooks to implement the class loader. See http://wiki.eclipse.org/Adaptor_Hooks for more detail BaseClassLoadingHook would search the native code on itself. If it find the file in that jar file, it would extract the native library into its storage folder. EclipseClassLoadingHook defines some …
Read MoreOSGi provides a mechanism to let user contribute custom schemes automatically. It avoid some restriction with Java facilities for extending the handlers. The more detail could be found from OSGi specification R4, which has description how OSGi implements URL Handler Service. Use a sample to illustrate how to contribute …
Read MoreOSGi Spec defines Bundle-NativeCode header to contain a specification of native code libraries contained in that bundle. All magic things are initialized by org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLibrary(String) and org.eclipse.osgi.framework.internal.core.BundleLoader.findLibrary(String). Then …
Read More