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

Add ComponentPostProcessor #140

Closed
eriksundin opened this issue Jan 2, 2014 · 2 comments
Closed

Add ComponentPostProcessor #140

eriksundin opened this issue Jan 2, 2014 · 2 comments

Comments

@eriksundin
Copy link
Contributor

A ComponentPostProcessor:

Post processes components created by the container, adding the possibility to mutate them.

Is picked up automatically by the container when defined. (infrastructure component)

@interface TyphoonComponentPostProcessor <NSObject>

- (id)postProcessComponent:(id)component;

@end
@eriksundin
Copy link
Contributor Author

Fixed.
In addition to the ComponentPostProcessor I added a TyphoonOrdered protocol with which you can control in which order processors are applied. This protocol is considered for both FactoryPostProcessors and ComponentPostProcessors. Both collections of processors are sorted when the component factory is loaded.

The Ordered protocol is optional and only considered if implemented, by default a processor will have a low priority.

Plan on getting into setting up the outlines for the AOP extension very soon, been some busy weeks these last ones.

@jasperblues
Copy link
Member

Very cool!

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