solomon_13000 (34) [Avatar] Offline
Did I implement AspectJ correctly? I didn't see any results.

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;

public class AspectJ {

@Pointcut("execution(public * *(..))")
private void publicMethod(){

public void print(){
System.out.println("hello world");

public class Driver {
public static void main(String args[]){
AspectJ j = new AspectJ();
ramnivas (171) [Avatar] Offline
Re: AspectJ Implementation
You don't have any advice defined. I think you need to learn the core concepts of AOP/AspectJ, first.