Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AJDT » Capturing annotations
Capturing annotations [message #590677] Wed, 26 October 2005 12:29
Benjamin Podszun is currently offline Benjamin PodszunFriend
Messages: 4
Registered: July 2009
Junior Member
Hi there.

New to AspectJ I did some basic examples and now I want to use it to solve
real problems ;)
For my current work I planned to tag some methods with annotations to
provide security checks without implementing those several times. Is this
a good practice at all?
First tests work so far, but I'd like to use the information in my
annotation for the advice. Example:

public void whatever() {}

I can match this join point using call(@Guarded * *(..)), but I see no way
to access the string value (or other values) later.

before() : call(@Guarded * *(..)) {
// I want to access the annotation here..

Using Google I always end up with the annotation-based way of using
AspectJ, the only usable info was
- but that's only a proposal and over a year old.

Can anyone lend me a helping hand here and tell me if it's a)
viable/okay/good practice to do what I plan to do here and b) how one is
supposed to access annotations of thisJoinPoint?

Thanks in advance,
Previous Topic:Problem symbols not shown in Package Explorer
Next Topic:Capturing annotations
Goto Forum:

Current Time: Sun May 27 05:29:55 GMT 2018

Powered by FUDForum. Page generated in 0.02427 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top