This worked on AOP1.0
I have methods that are annotated like this:
anonymous wrote :
| @APerfAspect (perfName = "perfTest")
| private void perfTest(){
| ...
| }
|
My jboss-aop.xml has this:
anonymous wrote :
|
<aspect class="com.memeticsystems.util.perf.PerfAspect"/>
|
    <bind pointcut="execution(* *->@com.memeticsystems.util.perf.APerfAspect(..))">
        <advice name="trace"
            aspect="com.memeticsystems.util.perf.PerfAspect"/>
    </bind>
|
|
My aspect looks like this:
anonymous wrote :
| @Aspect (scope = Scope.PER_VM)
| public class PerfAspect{
| public Object trace(MethodInvocation invocation) throws Throwable{
| final Method method = invocation.getMethod();
| final APerfAspect annotation =
(APerfAspect)invocation.resolveAnnotation(APerfAspect.class);
| ...
|
And my annotation interface looks like this:
anonymous wrote : @Target({ElementType.METHOD})
| public @interface APerfAspect{
| String packageName() default PerfUtil.ROOT_PACKAGE_NAME;
|
| String perfName() default "";
|
| String perfCategory() default "";
| }
When I call resolveAnnotation, it always returns null.
When I step thru it , all of the AnnotationRepository's maps are empty.
Any ideas what could be happening?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3863987#3863987
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3863987
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development