Does Idea use aspects

Just curious if the jetbrain folks are using aspects in the development of idea. If so how is it working out. Do you like having the extra functionality? Do the aspects make the code harder or easier to maintain?

0
7 comments
Avatar
Permanently deleted user

We are not using aspects heavily yet.
The only usage is for declaring warnings/errors about improper API usage. The join points are highlighted immediately so you are
always warned when calling "prohibited" method.

--

Best regards,
Eugene Zhuravlev
JetBrains, Inc, http://www.intellij.com
"Develop with pleasure!"

"charles decroes" <spam@decroes.com> wrote in message news:9322357.1057851641613.JavaMail.itn@is.intellij.net...

Just curious if the jetbrain folks are using aspects in the development of idea. If so how is it working out. Do you like having

the extra functionality? Do the aspects make the code harder or easier to maintain?


0
Avatar
Permanently deleted user

Eugene, could you post a few of these as examples?

Eugene Zhuravlev wrote:

We are not using aspects heavily yet.
The only usage is for declaring warnings/errors about improper API usage. The join points are highlighted immediately so you are
always warned when calling "prohibited" method.


0
Avatar
Permanently deleted user

Something like this:

public aspect ImproperUsageOfImplClasses {

pointcut everyUseOfMyAPI() : call(* com.mycompany.myAPI.impl...(..)) || call (com.mycompany.myAPI.impl..*.new(..));

pointcut outsideMyAPI() : !within(com.mycompany.myAPI.impl..*);

pointcut inTest() : within(junit.framework.TestCase+);

declare warning : everyUseOfMyAPI() && outsideMyAPI() && !inTest() : "Classes from myAPI.impl should only be used in myAPI.impl";
}

--

Best regards,
Eugene Zhuravlev
JetBrains, Inc, http://www.intellij.com
"Develop with pleasure!"


"Barry Kaplan" <bkaplan@integratedtrading.com> wrote in message news:bf1a1u$g5j$1@is.intellij.net...

Eugene, could you post a few of these as examples?

>



0
Avatar
Permanently deleted user

Hello,
Where we can find an api for aspectj used in idea?
Thank you

0
Avatar
Permanently deleted user

What API do you mean?

--

Best regards,
Eugene Zhuravlev
JetBrains, Inc, http://www.intellij.com
"Develop with pleasure!"


"ceva" <no_mail@jetbrains.com> wrote in message news:28456222.1058425617533.JavaMail.itn@is.intellij.net...

Hello,
Where we can find an api for aspectj used in idea?
Thank you



0
Avatar
Permanently deleted user

by api here i mean some documentation to see what we can do in aspectj used in idea.

0
Avatar
Permanently deleted user

Please check jetbrains.intellij.eap.aspectj newsgroup

--

Best regards,
Eugene Zhuravlev
JetBrains, Inc, http://www.intellij.com
"Develop with pleasure!"

"ceva" <no_mail@jetbrains.com> wrote in message news:22493130.1058444304383.JavaMail.itn@is.intellij.net...

by api here i mean some documentation to see what we can do in aspectj used in idea.



0

Please sign in to leave a comment.