Skip to content

Commit

Permalink
Updated example, TODO, and podspec
Browse files Browse the repository at this point in the history
  • Loading branch information
jdewind committed Mar 4, 2012
1 parent bc896b8 commit c7043ef
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 9 deletions.
Expand Up @@ -6,7 +6,8 @@

}

+ (JSObjectionInjector *)createInjector:(JSObjectionModule *)aModule;
+ (JSObjectionInjector *)createInjectorWithModules:(JSObjectionModule *)first, ... NS_REQUIRES_NIL_TERMINATION;
+ (JSObjectionInjector *)createInjector:(JSObjectionModule *)module;
+ (JSObjectionInjector *)createInjector;
+ (void)registerClass:(Class)theClass lifeCycle:(JSObjectionInstantiationRule)lifeCycle;
+ (void)setGlobalInjector:(JSObjectionInjector *)anInjector;
Expand Down
Expand Up @@ -9,5 +9,6 @@

- (id)initWithContext:(NSDictionary *)theGlobalContext;
- (id)initWithContext:(NSDictionary *)theGlobalContext andModule:(JSObjectionModule *)theModule;
- (id)initWithContext:(NSDictionary *)theGlobalContext andModules:(NSArray *)modules;
- (id)getObject:(id)classOrProtocol;
@end
Expand Up @@ -3,7 +3,7 @@
@class JSObjectionInjector;

@protocol JSObjectionProvider<NSObject>
- (id)createInstance:(JSObjectionInjector *)context;
- (id)provide:(JSObjectionInjector *)context;
@end


Expand All @@ -21,6 +21,7 @@
- (void)bindProvider:(id<JSObjectionProvider>)provider toClass:(Class)aClass;
- (void)bindProvider:(id<JSObjectionProvider>)provider toProtocol:(Protocol *)aProtocol;
- (void)bindClass:(Class)aClass toProtocol:(Protocol *)aProtocol;
- (void)bindClass:(Class)aClass toClass:(Class)toClass;
- (void)bindBlock:(id (^)(JSObjectionInjector *context))block toClass:(Class)aClass;
- (void)bindBlock:(id (^)(JSObjectionInjector *context))block toProtocol:(Protocol *)aProtocol;
- (void)registerEagerSingleton:(Class)klass;
Expand Down
Binary file not shown.
Expand Up @@ -13,10 +13,10 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>0.10.0</string>
<string>0.12.0</string>
<key>CFBundleSignature</key>
<string>ATOM</string>
<key>CFBundleVersion</key>
<string>1</string>
<string>0.12.1</string>
</dict>
</plist>
Expand Up @@ -479,7 +479,7 @@
29B97313FDCFA39411CA2CEA /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0420;
LastUpgradeCheck = 0430;
};
buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "ObjectionExample" */;
compatibilityVersion = "Xcode 3.2";
Expand Down
4 changes: 2 additions & 2 deletions Objection.podspec
@@ -1,9 +1,9 @@
Pod::Spec.new do |s|
s.name = 'Objection'
s.version = '0.10'
s.version = '0.12.1'
s.summary = 'A lightweight dependency injection framework for Objective-C.'
s.author = { 'Justin DeWind' => 'dewind@atomicobject.com' }
s.source = { :git => 'https://github.com/atomicobject/objection.git', :tag => '0.10' }
s.source = { :git => 'https://github.com/atomicobject/objection.git', :tag => '0.12.1' }
s.homepage = 'http://www.objection-framework.org'
s.source_files = 'Source'
s.license = "https://github.com/atomicobject/objection/blob/master/LICENSE"
Expand Down
5 changes: 3 additions & 2 deletions README.md
Expand Up @@ -205,8 +205,9 @@ Occasionally you'll want to manually construct an object within Objection. Provi
```
## TODO
* Add support for custom initializers
* Support 'static' injection to help workaround poorly implemented APIs
* Add support for alternate initializers
* <code>objection\_initializer(initWithNibName:bundle, @"Nib", nil)</code>
* Support 'static' injection
* Resolve circular dependencies
* Add contribution section
* Re-factor the method for declaring dependencies
Expand Down

0 comments on commit c7043ef

Please sign in to comment.