One possible approach to this issue is to have a plugin interface which allows users to define new classloaders the same way new functions are added.  This is particularly useful in the case of IDE, where a user starts up Eclipse and it loads the state of the last project.
 
In a dynamic environment where the object model is defined by Schema/XMI/RelaxNG, having the ability to plugin new classloaders would be a useful feature. The reason I say this is, a person could define a new data model with schema and use jaxb/castor to compile it. A new class could be added to jess without having to instantiate a new jess.Rete instance.
 


[EMAIL PROTECTED] wrote:
I think Alan Moore wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> Would it be possible to have the (import) function fail or give a warning
> when the specified package and/or class doesn't exist. Currently,
>
> (import com.package.doesnt.exist.MyMispeledClass)
>
> doesn't give any indication that something is wrong.
>

This could be done easily enough for specific classes by trying to
load them, but for packages, I'm not so sure. A Java compiler controls
its own classloader, so it knows where classes can be found; that
classloader can search its classpath for a package. But Jess has to
live embedded inside other software, and follow the rules of whatever
environment it's in -- i.e., it doesn't and can't have its own
classloader, so it really doesn't know where to look for packages.
As usual, suggestions welcome.



---------------------------------------------------------
Ernest Friedman-Hill
Distributed Systems Research Phone: (925) 294-2154
Sandia National Labs FAX: (925) 294-2234
PO Box 969, MS 9012 [EMAIL PROTECTED]
Livermore, CA 94550 http://herzberg.ca.sandia.gov

--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------


Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

Reply via email to