Solved

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

Posted on 2012-04-03
2
300 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

831 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