Ignore:
Timestamp:
07/01/11 14:00:27 (10 years ago)
Author:
Mark Evenson
Message:

Make JAVA:ADD-TO-CLASSPATH a generic function.

With this change we can customize the mechanism for changing the
classpath. The first planned use is for JSS to use an :after method
to be informed of classpath additions, so we can factor out the ASDF
portion into the ABCL-ASDF extension package.

Add JAVA:GET-CURRENT-CLASSLOADER to access a wrapped instance of the
underlying current JVM classloader being used by ABCL.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abcl/src/org/armedbear/lisp/java.lisp

    r13368 r13369  
    4343  (dolist (url urls)
    4444    (add-url-to-classpath url)))
     45
     46(defgeneric add-to-classpath (jar-or-jars &optional classloader))
     47
     48(defmethod add-to-classpath (jar-or-jars &optional (classloader (get-current-classloader)))
     49  (%add-to-classpath jar-or-jars classloader))
    4550
    4651(defun jregister-handler (object event handler &key data count)
Note: See TracChangeset for help on using the changeset viewer.