Skip to main content

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

Add a public no-arg constructor to MethodInterceptor and initialize 
your variable in it.

-Ramnivas

--- André_Dantas_Rocha <ad-rocha@xxxxxxxxxx> wrote:
> 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é
> 


__________________________________
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
http://mail.yahoo.com


Back to the top