Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Good Techniques of Tracing

Hello Guys

I have problem with pointcut
I try to capture any method this Class: ArquivoTcs

I try this:

pointcut traceMethods1():  execution(* ArquivoTcs.*(..) ) || call(* ArquivoTcs.*(..))
    && !within(TraceAspect);

before(): traceMethods1()
    {
        if ( log.isEnabledFor(Level.INFO) )
        {
            Signature sig = thisJoinPointStaticPart
.getSignature();
            log.log(Level.INFO , "Entering [ "+sig.getDeclaringType().getName()+" . "+sig.getName()+"]");
        }
    }

But failed ,  nothing captured I donĀ“t understand this problem because I specify this any execution or call method Class ArquivoTcs

How could captured  any execution or call method this class ArquivoTcs?

Hug



--
raphael milani
:=]

Back to the top