Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TyphoonBlockComponentFactory dispatch non component methods #42

Closed
jasperblues opened this issue Jul 31, 2013 · 3 comments
Closed

TyphoonBlockComponentFactory dispatch non component methods #42

jasperblues opened this issue Jul 31, 2013 · 3 comments

Comments

@jasperblues
Copy link
Member

TyphoonBlockComponentFactory has a resolveInstanceMethod that allow using the Assembly interface to retrieve components. . . this is more prefereable than resolving by string.

Perhaps it could be enhanced to trampoline non component matching methods back to the assembly class?

This would allow custom factory methods. For example:

[assembly photoClientForId:facebook caching:YES];

@rhgills
Copy link
Contributor

rhgills commented Aug 3, 2013

Interesting! I spent some time on Thursday working on 'parameterized providers', which would allow something similar. Namely, passing in definitions or even objects at runtime into other definition returning methods on the assembly. See #47 and the experimental branch I just pushed.

@jasperblues
Copy link
Member Author

Relates to (and may conflict with) #47

@jasperblues
Copy link
Member Author

Provided by TyphoonAssistedFactoryProvider instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants