Is your runtime component OSGi based or is it your own runtime where you
have control over the class loaders?  It sounds like your investigating the
design time component here.  For this I think you need to implement a class
path container that knows how to load stuff from your DB, but I am not sure
if you are allowed to have class path containers that have content that is
not file/jar based.  The JDT news group or mailing list may have the
answers for you.

Tom




|------------>
| From:      |
|------------>
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
  |"Ranganathan, Arun" <[email protected]>                             
                                                                     |
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| To:        |
|------------>
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
  |"Equinox development mailing list" <[email protected]>                 
                                                                     |
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Date:      |
|------------>
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
  |07/16/2009 10:40 AM                                                          
                                                                     |
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Subject:   |
|------------>
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
  |RE: [equinox-dev] Override/Extend Eclipse Class Loading                      
                                                                     |
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|





Tom/Paul,

Many thanks for that. I will try out the adapter hooks..

My application has a design time and a runtime component. The design time
(Eclipse WorkBench) environment generates java code and publishes to a
nominated database. The runtime system loads these classes from the
database for execution. The generated java classes need to be in the
project classpath so that they can be used. This currently involves
packaging those generated components as ‘reference’ jars which are added to
the Java Project classpath.

I was looking for a mechanism whereby the classes added to the database are
automatically available by means of an ‘extension’ to the Project
ClassLoader. This way, the newly published classes are available to
developers for use. These classes are not OSGI bundles. No reason for them
not to be, but they are not at the moment.

Cheers
arun


From: [email protected] [
mailto:[email protected]] On Behalf Of Thomas Watson
Sent: 16 July 2009 15:27
To: Equinox development mailing list
Subject: Re: [equinox-dev] Override/Extend Eclipse Class Loading



Paul is correct to point you to the adaptor hooks. That is where you can
plug into the OSGi Class Loading. But the framework still has a rather
strong relationship to file based bundles.

I am curious if you are trying to load the complete bundle from a DB or
just some of the content?

Tom



Inactive hide details for "Ranganathan, Arun" ---07/16/2009 08:47:47
AM---Hi All,"Ranganathan, Arun" ---07/16/2009 08:47:47 AM---Hi All,


                                                                           
                                                                           
 From:               "Ranganathan, Arun" <[email protected]>      
                                                                           
                                                                           
 To:                 <[email protected]>                             
                                                                           
                                                                           
 Date:               07/16/2009 08:47 AM                                   
                                                                           
                                                                           
 Subject:            [equinox-dev] Override/Extend Eclipse Class Loading   
                                                                           






Hi All,

I intend to setup the dev environment in Eclipse such that all reference
classes are picked up from the Database rather than adding jars to the
classpath.

I have created a URLClassLoader along with StreamHandlers etc and have
successfully tested my 'custom' classloader. [test class -> load class ->
invoke custom URL -> access DB -> stream bytes -> define/resolve class ->
new Instance()]

Now, I need to integrate this CL with my Project. The issue is that all
libraries, external jars etc are file oriented. In some posts I read that
OSGI ClassLoading is different to URLClassLoading that I have done.
Moreover I am not very conversant with OSGI.

I am continuing to research more in this area but a nudge in the right
direction will save me time.

Any thoughts?

cheers
arun




"Misys" is the trade name for Misys plc (registered in England and Wales).
Registration Number: 01360027. Registered office: One Kingdom Street,
London W2 6BL, United Kingdom. For a list of Misys group operating
companies please go to
http://www.misys.com/corp/About_Us/misys_operating_companies.html. This
email and any attachments have been scanned for known viruses using
multiple scanners. This email message is intended for the named recipient
only. It may be privileged and/or confidential. If you are not the named
recipient of this email please notify us immediately and do not copy it or
use it for any purpose, nor disclose its contents to any other person. This
email does not constitute the commencement of legal relations between you
and Misys plc. Please refer to the executed contract between you and the
relevant member of the Misys group for the identity of the contracting
party with which you are dealing.
_______________________________________________
equinox-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/equinox-dev





"Misys" is the trade name for Misys plc (registered in England and Wales).
Registration Number: 01360027. Registered office: One Kingdom Street,
London W2 6BL, United Kingdom. For a list of Misys group operating
companies please go to
http://www.misys.com/corp/About_Us/misys_operating_companies.html. This
email and any attachments have been scanned for known viruses using
multiple scanners. This email message is intended for the named recipient
only. It may be privileged and/or confidential. If you are not the named
recipient of this email please notify us immediately and do not copy it or
use it for any purpose, nor disclose its contents to any other person. This
email does not constitute the commencement of legal relations between you
and Misys plc. Please refer to the executed contract between you and the
relevant member of the Misys group for the identity of the contracting
party with which you are dealing.



Checked by AVG - www.avg.com
Version: 8.5.375 / Virus Database: 270.13.16/2240 - Release Date: 07/15/09
17:58:00_______________________________________________
equinox-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/equinox-dev





<<inline: graycol.gif>>

<<inline: ecblank.gif>>

<<inline: 2B580063.gif>>

<<inline: 2B756858.gif>>

_______________________________________________
equinox-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/equinox-dev

Reply via email to