[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aspectj-users] perthis-clause with logical operators
|
Ok, thanks!
kind regards
Tobias
> -----Ursprüngliche Nachricht-----
> Von: aspectj-users@xxxxxxxxxxx
> Gesendet: 09.02.08 04:25:50
> An: aspectj-users@xxxxxxxxxxx
> Betreff: Re: [aspectj-users] perthis-clause with logical operators
This should work just fine. However, a better way would be to declare a named pointcut and then use the pointcut in the perthis() clause. Something like:
>
> public aspect ScriptingAspect perthis(scriptableObject()) {
> pointcut scriptableObject() : this(XULComponent+) || this(ParametrizedRemoteCaller+;
> ...
> }
> -Ramnivas
>
>
> On Fri, Feb 8, 2008 at 9:15 AM, Tobias Demuth <tobias_demuth@xxxxxx> wrote:
> Hi,
>
> I'm currently enhancing a GUI-library with scripting-capabilities using AspectJ. Now I must control the instantiation-policy of the Aspect using the perthis()-clause. Currently I'm using this code:
>
> public aspect ScriptingAspect perthis(this(XULComponent+) || this(ParametrizedRemoteCaller+)) {
> ...
> }
>
> This should instantiate a new ScriptingAspect-instance for each subclass of XULComponent or ParametrizedRemoteCaller. The compiler says it is ok, but I want to have this doublechecked by someone who knows more about AspectJ than I do. Will this clause work?
>
> kind regards
> Tobias
> _____________________________________________________________________
> Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
> http://smartsurfer.web.de/?mc=100071&distributionid=000000000066
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>
> -----------------------------------------------------------------
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
_____________________________________________________________________
Unbegrenzter Speicherplatz für Ihr E-Mail Postfach? Jetzt aktivieren!
http://www.digitaledienste.web.de/freemail/club/lp/?lp=7