Solved

How to identify Java classes tagged with a specific annotation in AspectJ

Posted on 2012-04-03
2
302 Views
Last Modified: 2012-04-04
For example if a java class has an annotation @monitor or @logging etc,what is the format of the pointcut descriptor?
0
Comment
Question by:akashsuresh
2 Comments
 
LVL 1

Author Comment

by:akashsuresh
ID: 37801186
Please note it is a class level annotation I am talking about and not a method.
0
 
LVL 35

Accepted Solution

by:
mccarl earned 500 total points
ID: 37804056
You should be able to do it like this...

@Pointcut("within(@package.name.monitor *)")
public void targetClasses() {}

Open in new window


And then follow with your normal pointcuts, etc.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question