Skip to content

Commit

Permalink
remove with-bundle*
Browse files Browse the repository at this point in the history
  • Loading branch information
aav committed Dec 24, 2011
1 parent 9327ab6 commit ecb62f5
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions ccw.core/src/ccw/util/bundle_utils.clj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
org.eclipse.core.runtime.Status
org.osgi.framework.Bundle
org.osgi.framework.BundleException
clojure.osgi.ClojureOSGi))
clojure.osgi.BundleClassLoader
))

;(defn require-and-get-var)
; public static Var requireAndGetVar(String bundleSymbolicName, String varName) throws CoreException {
Expand Down Expand Up @@ -67,12 +68,7 @@
; (bundle-class-loader bundle) function)
; )
;)

(defn with-bundle* [bundle f]
(clojure.osgi.ClojureOSGi/withBundle
bundle
(reify clojure.osgi.RunnableWithException
(run [this] (f)))))
;

;; http://www.ibm.com/developerworks/opensource/library/os-ecl-dynext/
(defn add-contribution [s bundle]
Expand Down

0 comments on commit ecb62f5

Please sign in to comment.