Skip to main content

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

Thanks Ramnivas!

 

-----Mensagem original-----
De: aspectj-users-admin@xxxxxxxxxxx [mailto:aspectj-users-admin@xxxxxxxxxxx]
Em nome de Ramnivas Laddad
Enviada em: quinta-feira, 18 de março de 2004 16:29
Para: aspectj-users@xxxxxxxxxxx
Assunto: Re: [aspectj-users] Abstract aspect variables

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

-Ramnivas

--- Andri_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,
>  
> Andri
> 


__________________________________
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam http://mail.yahoo.com
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/aspectj-users



Back to the top