AspectJ - pointcut with dynamic value -


is possible doing this?

private static final string package = system.getproperty("packageprefix", "org.company_name");  @around("execution(* "+package+"..*.*(..)) && @annotation(validate)") 

unfortunately, no. not possible since compiler/weaver must know woven @ compile time. using compile time weaving, pointcuts may not change across restarts of application.


Comments