There's a few differences:
1) When you use "useValue(new MyClass())" the class is created at the time you create your rules. When you use useSingletonOf(MyClass), the object is not created until it's requested. It's the same as lazy/eager singleton in Guice.
2) When you use usValue() and create the class yourself, your instance won't be injected into, as it will when you let SmartyPants take care of construction.
BTW, glad to hear you like it :)
-Josh
--
"Therefore, send not to know For whom the bell tolls. It tolls for thee."
Josh 'G-Funk' McDonald
-
jo...@joshmcdonald.info
-
http://twitter.com/sophistifunk -
http://flex.joshmcdonald.info/