András Simon | 13 Nov 2003 18:28
Picon

jregister-handler questions


I've partially implemented jregister-handler, and it contains a new
Primitive that I can't arrange to be recognized as such. It's as if
the class that defines it weren't loaded - and once I access other
parts of it from lisp, everything starts to work fine.

    // jregister-handler1 object event handler data count
    private static final Primitive JREGISTER_HANDLER1 = new
    Primitive("jregister-handler1", PACKAGE_JAVA)
    {
        public LispObject execute(LispObject[] args) throws
    ConditionThrowable
        { ...

What is the canonical way to have the symbol jregister-handler1
present right from the start?

Also, right now I'm using a WeakHashTable to store handlers, with the
objects to which they are associated as keys. Is this a good approach?
I'm slightly worried that extensive modification of the object will
lead to troubles. It hasn't so far, but I haven't tested it very
extensively.

Andras

-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/

Gmane