[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.technology.equinox] Providing interface as bundle with implementations as bundle
|
Hi,
I try to do the following:
- define bundle "ServiceInterface" which defines an interface
- define bundle "ServiceImpl1" with Version 1.0.0 which implements the
interface from "ServiceInterface"
- deiine bundle "ServiceImpl2" with Version 1.0.1 which implements the
interface from "ServiceInterface"
"ServiceImpl1" and "ServiceImpl2" depending from "ServiceInterface"
I started equinox with the 3 bundles by EclipseStarter.startup(). The
starting class has the version information to find the implementation that
fits. The Problem is now, the starter class has another class loader than
the bundles and the cast from the object delivered as service by
"ServiceImpl1" or "ServiceImpl2" (depending on desired version) fails.
Has anyone an idea how to "get" a implementation for an interface by
version from "outside" where the interface and all implementations are in
separate bundles ?
Thanks,
Oliver