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
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 :
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
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
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
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
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
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
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
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
10 matches
Mail list logo