All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mypackage.aspects.RequestIdTrace Maven / Gradle / Ivy

Go to download

Weave HelloWorld class with the automon aspect. This is an example of compile time weaving.

The newest version!
package com.mypackage.aspects;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.automon.aspects.tracing.aspectj.RequestIdAspect;

/** Sample outputs from this aspect...
 */
@Aspect
public class RequestIdTrace extends RequestIdAspect {
// Note the pointcut will work with public/private/protected methods (privileged)
// The commented out within(...) pointcut will work with any of the aspectj types/kind
// that are supported such as execution/call/get/set/constructors/static initialization ...
//     @Pointcut("within(com.stevesouza.helloworld.HelloWorld+)")

    @Pointcut("execution(* com.stevesouza.helloworld.HelloWorld.*(..))")
    public void select() {

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy