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

[RubyForge-19122] Reusable aspects: deferred definition of pointcuts and advising of join points #24

Open
hedgehog opened this issue Jan 29, 2010 · 0 comments

Comments

@hedgehog
Copy link

Date:2008-03-26 12:49
Priority:3
Submitted By:Dean Wampler (deanwampler)
Assigned To:Dean Wampler (deanwampler)
Category:None
State:Open
Summary:Reusable aspects: deferred definition of pointcuts and advising of join points

Detailed description

There is currently no easy way to define a reusable aspect, where the actual pointcuts are specified and evaluated later, because the Aspect is evaluated as soon as it is declared!

It would not be difficult to extend Aspect to defer evaluation (See #19 (RubyForge-14054) for a related feature request). It should also be possible to allow deferred specification of pointcuts.

For now, there is a "module_eval" hack documented in
examples/reusable_aspect_hack_example.rb

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

No branches or pull requests

1 participant