atomicobject/objection — pull request #30 by sschmid (2012-11-26 15:36:42+00:00)
Title: Added feature for adding and removing modules.

Hi again,

I worked a little bit on some ideas I had:

Get all objection_register out of the classes and let the modules do it automatically
(see JSObjectionModule bindClass:toProtocol:)

Also added the opportunity to mark some class as singletons
(see bindClass:toProtocol:asSingleton:)
This will add a binding to the injector's context instead to the gContext.

Added addModule, removeModule, and more to JSObjectionInjector.
This way, you can easily configure modules at some later time, and also get rid of all their bindings by simply removing the module from the injector.
I also added unRegisterClass to JSObjection, because JSObjectionInjectorEntry automatically manipulates gContext (see buildObject).

Let me know, what you think
Cheers,
Simon