davidsantiago/clojure-hbase — pull request #7 by senior (2012-04-20 13:55:05+00:00)
Title: Changes to the *admin* var

I was using admin.clj for some unit testing and ran into some issues. Currently the *admin* var gets the HBaseAdmin set when the namespace loads. This means that you must have HBase up and running to load the code. In the case of unit tests, I'm starting up HBase in a clojure.test fixture, so HBase isn't up and running yet when the namespace loads.

The other change I made was to make *admin* not private. I'm getting an HBaseAdmin from HBaseTestingUtility pre-configured. With this change I can bind it in a fixture.

The previous defaulting behavior of *admin* should still be there, it just won't get initialized until the user invokes an admin function.