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 More about Embedding an HTTP server in EquinoxThe 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 More about Eclipse/OSGi preferenceSet 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 More about [OSGi][Eclipse]Add custom jar or path into Equinox FrameworkThe answer is very simple, using the service 'org.eclipse.service.PackageAdmin'.
Read More about [OSGi]How to acquire the fragments of specified bundleEquinox 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 More about [Eclipse]Equinox's classloader and its URL schemaOSGi 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 More about [OSGi][Equinox]URL Handlers ServiceOSGi 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 about [OSGi][Equinox]the Bundle-NativeCode implementation in Equinox