Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

New instance of aspect is created for each class #23

Open
norbe opened this issue Oct 26, 2014 · 2 comments
Open

New instance of aspect is created for each class #23

norbe opened this issue Oct 26, 2014 · 2 comments

Comments

@norbe
Copy link
Contributor

norbe commented Oct 26, 2014

I have one aspect, that defines one pointcut for first class and one pointcut for second class. Is it bug or feature, that kdyby/aop create 2 instances of Aspect class?

@fprochazka
Copy link
Member

I think of it as a feature. I think it would be best to look at other aop-related projects to see how they're solving this. Could you investigate a bit please?

@norbe
Copy link
Contributor Author

norbe commented Oct 29, 2014

For now I just extract logic to another service, so my problem is solved. Maybe it will be anought when
we mention it in documentation?

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

No branches or pull requests

2 participants