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

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -