I know that Objection allows you to designate which init method gets called when Objection creates new instances of a class, but does it support any way to have the init arguments automatically fill with objects that the injector already has mappings for? For example...
Say I have a PhotoGallery class with the following init method...
- (id)initWithPhotoService:(id<PhotoService>)service;
And say that I have already mapped the class FlickrService to the PhotoService protocol...
// Inside my JSObjectionModule subclass
[self bindClass:[FlickrService class] toProtocol:@protocol(PhotoService)];
I want an instance of FlickrService to be automatically injected via the init method when I do this...
PhotoGallery *gallery = self.injector[[PhotoGallery class]];
...or (especially) in cases where this approach is used...
objection_requires_sel(@selector(gallery));
Is that supported? I had assumed it would be but have not been able to get it to work.