Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (21 sloc) 0.616 kb
#import "JSObjectFactory.h"
#import "Objection.h"
@implementation JSObjectFactory
@synthesize injector = _injector;
- (id)initWithInjector:(JSObjectionInjector *)injector {
if ((self = [super init])) {
_injector = injector;
}
return self;
}
- (id)getObject:(id)classOrProtocol {
return [self.injector getObject:classOrProtocol];
}
- (id)getObjectWithArgs:(id)classOrProtocol, ... {
va_list va_arguments;
va_start(va_arguments, classOrProtocol);
id object = [self.injector getObject:classOrProtocol arguments:va_arguments];
va_end(va_arguments);
return object;
}
@end
Jump to Line
Something went wrong with that request. Please try again.