[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Intercepting java.lang.reflect methods -- bad idea?

2004-05-27 Thread Squeak
Well, I have gotten it to work, and I don't know if this is a bug, or ignorance on my part. The following does *not* work: | bind pointcut=call(void java.lang.reflect.Field-set(..)) | AND within(org.osn.*) | AND !withincode(Object

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Intercepting java.lang.reflect methods -- bad idea?

2004-05-27 Thread Bill Burke
Sorry I didn't see it. It should be java.lang.Object not Object It should be java.lang.String not String Only fully qualified names. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3836494#3836494 Reply to the post :

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Intercepting java.lang.reflect methods -- bad idea?

2004-05-27 Thread Squeak
Of course! I am not sure how I missed that. Sorry for wasting your time. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3836511#3836511 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3836511

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Intercepting java.lang.reflect methods -- bad idea?

2004-05-27 Thread Bill Burke
NP. Just makes me realize that you should be able to type in java.lang types without java.lang. I've made the same mistake a few times myself. Others will like crazy too. Bill View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3836513#3836513 Reply to the post

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Intercepting java.lang.reflect methods -- bad idea?

2004-05-27 Thread [EMAIL PROTECTED]
You can have an Object class that is not java.lang.Object | [EMAIL PROTECTED] java]$ cat Object.java | public class Object extends java.lang.Object | { |public Object() |{ |} | } | | [EMAIL PROTECTED] java]$ javap Object | Compiled from Object.java | public

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Intercepting java.lang.reflect methods -- bad idea?

2004-05-26 Thread kabkhan
There is some brand new stuff for intercepting reflection using caller pointcuts in cvs, it's in the aop module under org.jboss.aop.reflection. There's a page on the wiki too that explains it. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3836306#3836306

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Intercepting java.lang.reflect methods -- bad idea?

2004-05-26 Thread Squeak
Wow, that stuff rocks! Now, let me ask you this: I have tried to define the following pointcut, but it is not working as I would think |bind pointcut=call(void java.lang.reflect.Field-set(..)) | AND within(org.osn.*) | AND !withincode(Object

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Intercepting java.lang.reflect methods -- bad idea?

2004-05-26 Thread kabkhan
I haven't checked properly, but does not within have to take a full class name? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3836349#3836349 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3836349

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Intercepting java.lang.reflect methods -- bad idea?

2004-05-26 Thread Bill Burke
This should work. It may be a bug in the expression parser although I thought I tested for this. I'm consulting this week, but I'll try to take a look as soon as I can. Thanks, Bill View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3836350#3836350 Reply to

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Intercepting java.lang.reflect methods -- bad idea?

2004-05-26 Thread Squeak
No worries, thanks for the help. I will try to dig into it more tomorrow and see what I can find as well. The 'within' clause seems to work -- without it I get all of the Field.set()'s from OJB. As for the clone method -- some background: I have a base object called BusinessObject, that