[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[aspectj-users] Re: [NEWSDELIVER] Using weaved plugin in eclipse
|
Chang,
>By the way, I am calling the functions in aspect using
reflection. Will that be a problem when it is in Eclipse plugin
>environment?
I would need to see an example.
Matthew Webster
AOSD Project
Java Technology Centre, MP146
IBM Hursley Park, Winchester, SO21 2JN, England
Telephone: +44 196 2816139 (external) 246139 (internal)
Email: Matthew Webster/UK/IBM @ IBMGB, matthew_webster@xxxxxxxxxx
http://w3.hursley.ibm.com/~websterm/
To:
Matthew Webster/UK/IBM@IBMGB
cc:
Subject:
Re: [NEWSDELIVER]
Using weaved plugin in eclipse
Thanks Matthew,
Your solution is helpful. I created a fragment which only
contains the aspectjrt.jar and put the library in the classpth of the plugin.
In plugin registry I can see the aspectj runtime is in the classpath when
the fragment is loaded. However, I still got the NoExpectBoundException.
I am creating a simple project to redo it all to see what actually went
wrong. I will let you know when I get the time to finish it.
By the way, I am calling the functions in aspect using
reflection. Will that be a problem when it is in Eclipse plugin environment?
I bevelie I saw some ForClass() discussion somewhere but I cannot rememeber
the details.
Thanks,
Chang
On 3/6/06, Matthew Webster <matthew_webster@xxxxxxxxxx
> wrote:
Hi,
How are you packaging your aspect? Is it in the same JAR as classes that
comprise the plug-in, a separate JAR in the plug-in or a separate plug-in?
Depending on the function the last option would be the best because that
way you could handle the aspectjrt.jar dependency. Alternatively you can
have a look at repackaging aspectjrt.jar yourself (depending on how much
of it you need): http://dev.eclipse.org/mhonarc/lists/aspectj-users/msg05522.html.
Matthew Webster
AOSD Project
Java Technology Centre, MP146
IBM Hursley Park, Winchester, SO21 2JN, England
Telephone: +44 196 2816139 (external) 246139 (internal)
Email: Matthew Webster/UK/IBM @ IBMGB, matthew_webster@xxxxxxxxxx
http://w3.hursley.ibm.com/~websterm/
To:
undisclosed-recipients:;
cc:
Subject: [NEWSDELIVER]
Using weaved plugin in eclipse
Hi,
I added some methods to a class in a plugin that I am not allowed to
change the source using aspectJ. When used in non-eclipse environment,
the
new methods in the plugin can be called without any problem by putting
both the plugin jar and aspectjrt.jar on the classpath. However, I found
I
was not able to test the weaved plugin in Eclipse since there is no way
to
put the aspectjrt.jar on the classpath of the plugin except changing the
dependency which I cannot do.
Is there a way to work around this or the approach I took is totally
wrong? Thanks a lot.