1.3.0 permalink Arrow_down_16x16



  • (resolve-class this name)
Given a class name, return that typeref's class bytes as an InputStream.

1 Example top

  • ;;Check if class c exists on the classpath
    (use '[clojure.reflect :only [resolve-class]])
    (defn class-exists? [c] 
      (resolve-class (.getContextClassLoader (Thread/currentThread)) c))
    user=> (class-exists? 'org.joda.time.DateTime) 
Log in to add / edit an example.

See Also top

Log in to add a see also.

Comments top

No comments for resolve-class. Log in to add a comment.