Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Abstract aspect variables

Hi,
 
Is it possible to declare a variable in a abstract aspect and initialize it in the concrete aspect?
 
abstract aspect AbstractMethodInterceptor {
  protected String test; 
  abstract pointcut calls();
}
 
public aspect MethodInterceptor extends AbstractMethodInterceptor {
  test = "Hello"; // how to?
  pointcut calls() : call(* *(..));
}
 
Thanks,
 
André

Back to the top