Permalink
Browse files

small update to README

reference injector through property accessor
  • Loading branch information...
1 parent fc8f0c0 commit 851a937be3acc0055e8d4e4a18c2e3df9eb52ffa @thestoics thestoics committed Mar 29, 2011
Showing with 4 additions and 4 deletions.
  1. +3 −3 README.md
  2. +1 −1 Source/ObjectionEntry.m
View
@@ -65,7 +65,7 @@ A global injector can be registered with Objection which can be used throughout
### Registering Instances
-Objection supports associating an object outside the context of Objection by configuring an ObjectionModule. You can also mark registered [singleton] classes as eager singletons. Eager singletons will be instantiated during the creation of the injector rather than being lazily instantiated.
+Objection supports associating an object outside the context of Objection by configuring an ObjectionModule. You can also mark registered singleton classes as eager singletons. Eager singletons will be instantiated during the creation of the injector rather than being lazily instantiated.
### Example
@interface MyAppModule : ObjectionModule {
@@ -88,9 +88,9 @@ Objection supports associating an object outside the context of Objection by con
### Meta Class Bindings
-There are times when a dependency -- usually external -- is implemented only using class methods. Objection can explicitly support binding to
+There are times when a dependency -- usually external -- is implemented using only class methods. Objection can explicitly support binding to
the meta class instance through a protocol. This avoids having to unnecessarily create a wrapper class that passes through to the class
-methods. The disadvantage, of course, is that it requires a protocol definition so that Objection knows how to bind the meta class to objects
+methods. The catch, of course, is that it requires a protocol definition so that Objection knows how to bind the meta class to objects
in the injector context.
### Example
View
@@ -67,7 +67,7 @@ - (id)buildObject {
[desiredClassOrProtocol class];
}
- id theObject = [_injector getObject:desiredClassOrProtocol];
+ id theObject = [self.injector getObject:desiredClassOrProtocol];
if(theObject == nil && propertyInfo.type == ObjectionTypeClass) {
[Objection registerClass:desiredClassOrProtocol lifeCycle: ObjectionInstantiationRuleEverytime];

0 comments on commit 851a937

Please sign in to comment.