Its not exactly a legacy situation. The problem I have is one that's shared with many object persistence frameworks that would naturally provide that capability as a service in an OSGi environment.
In my case, the persistence model is based on the ability of any bundle to declare an interface which is suitably annotated, and which the persistence service will automatically construct suitable tables, views etc based on the interface methods, arguments and annotations. An object factory in the provider then generates a "real" object usable in the caller bundle, and whose methods are interpreted by a dynamic proxy into calls to the persistence layer. The problem comes when you wish to extract information from the persistence service. How do you recreate the stored object when the interface which was used to create the dynamic proxy is not in the persistence layer's bundle? On 07/08/2008 15:31, "Richard S. Hall" <[EMAIL PROTECTED]> wrote: Jackson, Bruce wrote: > Does Felix support anything that carries out a similar function to buddy > class loading in Equinox? > I'm aware of the DynamicImport-Package, but that rather supposes that the > bundle who declares this knows the bundles that it needs as "helpers" to load > classes. > Sorry, no, Felix does not support any such option. And you are right, dynamic imports are probably not exactly what you want either. Currently, it is possible that the spec will eventually define something like this, but currently there is nothing. However, this should likely only be used in legacy situations, is that your situation? -> richard
