Hi there,

I had created a logger with AOP as shown below

Code:
@Aspect
public class LogInterceptor {

	// @Pointcut("execution(* com.abc.xyz..*.*(..))")
	@Pointcut("within(com.abc.xyz..*)")
//	@Pointcut("execution(public * *(..))")
	public void allMethod() {
	}

	@Before("allMethod()")
	public void before(JoinPoint jp) {
		Logger.logMethodStart(jp.getTarget(), jp.getSignature().getName());
	}

	@AfterReturning("allMethod()")
	public void afterReturning(JoinPoint jp) {
		Logger.logMethodEnd(jp.getTarget(), jp.getSignature().getName());
	}

}

i had tried all the point cuts shown

I had a set fo packages with in com.abc.xyz
my intention for the point cut was to call logger for all the public methods with in the sub packages of com.abc.xyz

for example it should be called for all the classes methods with public acess modifier for teh below packages

com.abc.xyz.pqr
com.abc.xyz.mno
etc


Could any body please correct me if i had anything wrong in my point cut for making my wish to work ?

Many Thanks in advance.