Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Trapping lookup method on InitialContext

This  seems to not working.

  @Pointcut("execute(* javax.naming.Context+.lookup(String)) &&
args(beanName)")
  public void initialContextLookup(String beanName) {
  }

  @Around("initialContextLookup(beanName)")
  public Object aroundInitialContextLookup(final ProceedingJoinPoint
thisJoinPoint, String beanName) throws Throwable
  {
	// code
  }

Can you please let me know what I'm doing wrong here?

Thanks


Back to the top