Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] perthis-clause with logical operators

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



Back to the top