diff src/clojure/contrib/jmx/server.clj @ 10:ef7dbbd6452c

added clojure source goodness
author Robert McIntyre <rlm@mit.edu>
date Sat, 21 Aug 2010 06:25:44 -0400
parents
children
line wrap: on
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/clojure/contrib/jmx/server.clj	Sat Aug 21 06:25:44 2010 -0400
     1.3 @@ -0,0 +1,18 @@
     1.4 +;; JMX server APIs for Clojure
     1.5 +;; docs in clojure/contrib/jmx.clj!!
     1.6 +
     1.7 +;; by Stuart Halloway
     1.8 +
     1.9 +;; Copyright (c) Stuart Halloway, 2009. All rights reserved.  The use
    1.10 +;; and distribution terms for this software are covered by the Eclipse
    1.11 +;; Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php)
    1.12 +;; which can be found in the file epl-v10.html at the root of this
    1.13 +;; distribution.  By using this software in any fashion, you are
    1.14 +;; agreeing to be bound by the terms of this license.  You must not
    1.15 +;; remove this notice, or any other, from this software.
    1.16 +
    1.17 +(in-ns 'clojure.contrib.jmx)
    1.18 +
    1.19 +(defn register-mbean [mbean mbean-name]
    1.20 +  (.registerMBean *connection* mbean (as-object-name mbean-name)))
    1.21 +