Re: [aspectj-users] Is this possible with AspectJ (or AOP in general)?

2007-02-12 Thread Holger Hoffstätte
ernii wrote: > Hmm ... has the license in version 6 changed or why is that problem gone? I was thinking about the upcoming open-sourcing, though I don't really know how this will affect distribution of modified JDk classes. > Do you have a link to instructions what I need to do to mess with the >

Re: [aspectj-users] Is this possible with AspectJ (or AOP in general)?

2007-02-11 Thread ernii
Holger Hoffstätte-2 wrote: > > This is perfectly possible by exposing the rt.jar to the weaver and add > the woven classes to the bootclasspath. Adding methods to > java.lang.String? No problem, works fine. :) > However it is mostly _impractical_, because of licensing restrictions and > the nee

Re: [aspectj-users] Is this possible with AspectJ (or AOP in general)?

2007-02-11 Thread ernii
Dean Wampler wrote: > > > So, you still won't affect calls from within Swing to itself, but > hopefully you only really need to advise Swing calls from your own code. > > That's the problem, I want to alter the behavior of the swing components, but want the user of the library not to worry

Re: [aspectj-users] Is this possible with AspectJ (or AOP in general)?

2007-02-10 Thread Dean Wampler
Paulo Alexandre Corigo Zenida wrote: Hello Ernii, As far as I know, it is not possible for AspectJ to do weaving in JDK classes. From what you have described, I suppose what you are defining in your pointcut is something like: public pointcut myPointcut() : execution(public void java.awt

Re: [aspectj-users] Is this possible with AspectJ (or AOP in general)?

2007-02-10 Thread Holger Hoffstätte
Paulo Alexandre Corigo Zenida wrote: > As far as I know, it is not possible for AspectJ to do weaving in JDK > classes. From what you have described, I suppose what you are defining > in your pointcut is something like: > > public pointcut myPointcut() : > execution(public void java.awt.Compon

Re: [aspectj-users] Is this possible with AspectJ (or AOP in general)?

2007-02-10 Thread Paulo Alexandre Corigo Zenida
Hello Ernii, As far as I know, it is not possible for AspectJ to do weaving in JDK classes. From what you have described, I suppose what you are defining in your pointcut is something like: public pointcut myPointcut() : execution(public void java.awt.Component+.paint(java.awt.Graphics)

Re: [aspectj-users] Is this possible with AspectJ (or AOP in general)?

2007-02-10 Thread Alexander Kriegisch
> So I tried to make a pointcut at void > java.awt.Component.paint(java.awt.Graphics) and that worked only with > classes within my project that have overriden the paint method Without knowing any details about your project, this sounds like a perfect match for AspectJ. The 'target' or 'within

[aspectj-users] Is this possible with AspectJ (or AOP in general)?

2007-02-09 Thread ernii
Hello, I'm new to AOP and trying to understand wether I can do the thinks I want to do with AOP (especially AspectJ wich seems to be the most complete solution - and I really like eclipse ;) I would like to add some general behaviour while painting to all swing components that I am using in my p