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



 "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
<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



Checked by AVG - www.avg.com
Version: 8.5.375 / Virus Database: 270.13.16/2240 - Release Date:
07/15/09 17:58:00


<<image005.gif>>

<<image004.gif>>

<<image001.gif>>

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

Reply via email to