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 <[EMAIL PROTECTED]> 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
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Reply via email to